LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 775|回复: 2

mysql 启动不来 怎么解决?

[复制链接]
发表于 2008-7-2 01:03:32 | 显示全部楼层 |阅读模式
[root@localhost ~]# rpm -ivh MySQL-server-5.0.22-0.i386.rpm
Preparing...                ########################################### [100%]
   1:MySQL-server           ########################################### [100%]
080702  0:54:05 [Warning] Asked for 196608 thread stack, but got 126976
080702  0:54:06 [Warning] Asked for 196608 thread stack, but got 126976
PLEASE REMEMBER TO SET A PASSWORD FOR THE MySQL root USER !
To do so, start the server, then issue the following commands:
/usr/bin/mysqladmin -u root password 'new-password'
/usr/bin/mysqladmin -u root -h localhost.localdomain password 'new-password'
See the manual for more instructions.

Please report any problems with the /usr/bin/mysqlbug script!

The latest information about MySQL is available on the web at
http://www.mysql.com
Support MySQL by buying support/licenses at http://shop.mysql.com
Starting MySQL...................................[失败]
发表于 2008-7-2 01:20:20 | 显示全部楼层
/usr/bin/mysqladmin -u root password 'new-password'
/usr/bin/mysqladmin -u root -h localhost.localdomain password 'new-password'

设置mysql 的root密码,不是在里面说清楚了吗?
回复 支持 反对

使用道具 举报

 楼主| 发表于 2008-7-2 01:30:15 | 显示全部楼层
[root@localhost ~]# mysqladmin -u root password 123
mysqladmin: connect to server at 'localhost' failed
error: 'Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)'
Check that mysqld is running and that the socket: '/var/lib/mysql/mysql.sock' exists!
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表