VPS侦探论坛

 找回密码
 注册
查看: 6109|回复: 1

mysql错误

[复制链接]
发表于 2012-4-16 16:43:34 | 显示全部楼层 |阅读模式

想备份数据库但是mysql有点问题,网上看了一些,还是不知道怎么办

下面是一些错误信息
mysqldump -uroot -p1235 supermario > mali.sql
mysqldump: Got error: 2002: Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2) when trying to connect


[root@uhz000118 ~]# service mysqld start
Starting MySQL:  [  OK  ]
[root@uhz000118 ~]# /etc/rc.d/init.d/mysqld status
mysqld (pid 12399) 正在运行...
[root@uhz000118 ~]# mysqldump -uroot -p1235 supermario > mali.sql
mysqldump: Got error: 1045: Access denied for user 'root'@'localhost' (using password: YES) when trying to connect



[root@uhz000118 ~]# mysql -h127.0.0.1 -uroot -p1235
ERROR 2003 (HY000): Can't connect to MySQL server on '127.0.0.1' (111)
还求指教

[ 本帖最后由 狡兔 于 2012-4-16 16:44 编辑 ]
美国VPS推荐: 遨游主机LinodeLOCVPS主机云搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
 楼主| 发表于 2012-4-16 17:36:56 | 显示全部楼层


额,重启居然就好了
Linux下Nginx+MySQL+PHP自动安装工具:https://lnmp.org
您需要登录后才可以回帖 登录 | 注册

本版积分规则

小黑屋|手机版|Archiver|VPS侦探 ( 鲁ICP备16040043号-1 )

GMT+8, 2024-9-22 19:21 , Processed in 0.029889 second(s), 16 queries .

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

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