设为首页 加入收藏

TOP

Linux下Mysqlerror2002错误解决
2014-11-23 23:18:56 来源: 作者: 【 】 浏览:6
Tags:Linux Mysqlerror2002 错误 解决
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!

】【打印繁体】【投稿】【收藏】 【推荐】【举报】【评论】 【关闭】 【返回顶部
分享到: 
上一篇mysql大小写问题 下一篇mysql字符太长警告

评论

帐  号: 密码: (新用户注册)
验 证 码:
表  情:
内  容: