LinuxSir.cn,穿越时空的Linuxsir!

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

如何停止启动mysql服务?

[复制链接]
发表于 2006-9-3 09:23:51 | 显示全部楼层 |阅读模式
mysql装完之后,无法连接。
于是我就 卸载了 。
我用的是源码。
启动的时候提示mysql启动失败!
如何停止mysql服务>?
发表于 2006-9-3 09:40:03 | 显示全部楼层

ps -e | grep mysql 看看有没有mysql。

我的机器显示如下:
[daiqiang@145] > ps -e | grep mysql
1958 ?        00:00:00 mysqld_safe
1988 ?        00:00:07 mysqld


我自己登录mysql:
[daiqiang@145] > mysql -u root -p
Enter password:
Welcome to the MySQL monitor.  Commands end with ; or \g.
Your MySQL connection id is 2 to server version: 4.1.11

Type 'help;' or '\h' for help. Type '\c' to clear the buffer.

mysql>
回复 支持 反对

使用道具 举报

 楼主| 发表于 2006-9-3 09:55:05 | 显示全部楼层
我装的是mysql-5.0.18
Enter password:
Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2)
我重新启动后,还是提示这个!
现在想把以前的卸载干净,重新装下!
回复 支持 反对

使用道具 举报

 楼主| 发表于 2006-9-3 09:55:05 | 显示全部楼层
我装的是mysql-5.0.18
Enter password:
Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2)
我重新启动后,还是提示这个!
现在想把以前的卸载干净,重新装下!
回复 支持 反对

使用道具 举报

 楼主| 发表于 2006-9-3 11:03:21 | 显示全部楼层
终于成功了!
:)
回复 支持 反对

使用道具 举报

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

本版积分规则

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