LinuxSir.cn,穿越时空的Linuxsir!

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

求救,mysql啟動不了

[复制链接]
发表于 2003-12-23 21:13:12 | 显示全部楼层 |阅读模式
打入
[root@redhat90 root]# /etc/rc.d/init.d/mysqld status
mysqld 停止執行但 subsys 已鎖定
打入
[root@redhat90 root]# service mysql restart
mysql: unrecognized service
打入
[root@redhat90 root]# /usr/bin/mysqladmin -u root password 12345678
/usr/bin/mysqladmin: connect to server at 'localhost' failed
error: 'Can't connect to local MySQL server through socket '/var/lib/mysql/mysql
.sock' (111)'
Check that mysqld is running and that the socket: '/var/lib/mysql/mysql.sock' ex
ists!

我一重啟電腦後就不能啟動mysql,請問為什麼會這樣的呢???:help :help
发表于 2003-12-23 22:00:58 | 显示全部楼层
看看/etc/rc.d/init.d/mysqld start
 楼主| 发表于 2003-12-23 23:19:12 | 显示全部楼层
[root@redhat90 root]# /etc/rc.d/init.d/mysqld start
啟動 MySQL:             [ 確定 ]
i found that my mysql.sock is a blank file...how to solve it??
sorry,i can't type chinese in linux,thanks for your help~~~
 楼主| 发表于 2003-12-23 23:27:37 | 显示全部楼层
error message in redhat-config-services,it shows:
mysqld dead but subsys locked
发表于 2003-12-24 11:25:32 | 显示全部楼层
遇到过这种情况,编辑my.conf或做一下ln
 楼主| 发表于 2003-12-24 13:38:42 | 显示全部楼层
系統重裝後問題解決了,謝謝兩位
发表于 2003-12-25 21:14:57 | 显示全部楼层
rm file .sock
 楼主| 发表于 2003-12-25 22:35:39 | 显示全部楼层
原?韱栴}出自我把mysql的mysql database刪除了,導致不能啟動.....
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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