搜索
查看: 976|回复: 0

【MySql】Linux下Mysqlerror2002错误解决

[复制链接]

149

主题

5

回帖

554

积分

高级会员

积分
554
发表于 2014-10-31 17:07:00 | 显示全部楼层 |阅读模式
Linux 下 Mysql error 2002 错误解决

先查看 /etc/rc.d/init.d/mysqld status 查看mysql是否已经启动.

如果启动的的话,先将数据库停止 kill mysql的进程id

[root@localhost beinan]#chown -R mysql:mysql /var/lib/mysql
[root@localhost beinan]# /etc/init.d/mysqld start
启动 MySQL: [ 确定 ]

[root@localhost lib]# mysqladmin -uroot password '123456'
[root@localhost lib]# mysql -uroot -p --登录数据库
Enter password:

Welcome to the MySQL monitor. Commands end with ; or /g.
Your MySQL connection id is 3 to server version: 4.1.11
Type 'help;' or '/h' for help. Type '/c' to clear the buffe

OK!

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

本版积分规则

 
 
大数据行业交流
大数据行业交流
大数据求职招聘
大数据求职招聘
站长电话:
15010106923
微信联系:
hb-0310
站长邮箱:
ab12-120@163.com
大数据中国微信

QQ   

版权所有: Discuz! © 2001-2013 大数据.

GMT+8, 2024-4-29 13:34 , Processed in 0.077582 second(s), 24 queries .

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