LinuxSir.cn,穿越时空的Linuxsir!

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

求救,debian下的mysql-5.0登陆不上?

[复制链接]
发表于 2006-2-27 10:18:02 | 显示全部楼层 |阅读模式
我在本地登陆的,提示“连接localhost失败”
root密码没有改过
发表于 2006-2-27 10:32:12 | 显示全部楼层
你用空密码测试
或看看/etc/mysql/debian.cnf文件内容,用其默认密码
[client]
host     = localhost
user     = debian-sys-maint
password = ********************
socket   = /var/run/mysqld/mysqld.sock
回复 支持 反对

使用道具 举报

 楼主| 发表于 2006-2-27 10:36:35 | 显示全部楼层
后来我把mysql进程kill掉了
再使用mysqld --skip-grant-tables &运行的,没有用密码就进来了
现在又有个问题,就是我修改了字段之后,再使用flush privileges;语句就出错了
提示:
ERROR 1046 (42000):You have an error in your SQL syntax;chech the manual that corresponds to your MySQL server version for the right syntax to usr near 'privilegs' at line 1
回复 支持 反对

使用道具 举报

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

本版积分规则

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