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!

 

版权声明:本文博主原创文章,博客,未经同意不得转载。 http://blog.csdn.net/core__code

相关文章:

  • 2022-12-23
  • 2021-11-21
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-01-14
  • 2021-11-29
猜你喜欢
  • 2022-12-23
  • 2021-11-08
  • 2022-12-23
  • 2022-12-23
  • 2021-12-01
  • 2022-12-23
  • 2021-10-23
相关资源
相似解决方案