免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 2699 | 回复: 5
打印 上一主题 下一主题

客户端软件(mysql-Front)能登陆,服务器端登陆不了!! [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2006-02-08 18:21 |只看该作者 |倒序浏览
客户端用MYSQL-Front能够登陆成功,用户名/密码:root/root
但是在服务器端命令行下:mysql -u root -p,然后输入root却提示错误:
ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: YES)
用mysqld --skip-grant-tables 也改过密码了,但是还是一样,这到底为什么啊?

论坛徽章:
0
2 [报告]
发表于 2006-02-08 18:34 |只看该作者
[root@localhost root]# mysql -u root -p
Enter password:
ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: YES)
[root@localhost root]# mysql               #直接敲mysql可以进去,但是看不到mysql数据库
Welcome to the MySQL monitor.  Commands end with ; or \g.
Your MySQL connection id is 5 to server version: 5.0.18-standard

Type 'help;' or '\h' for help. Type '\c' to clear the buffer.

mysql> show databases;
+--------------------+
| Database           |
+--------------------+
| information_schema |
| test               |
+--------------------+
2 rows in set (0.00 sec)

论坛徽章:
0
3 [报告]
发表于 2006-02-08 21:58 |只看该作者
默认有个空用户delete from usr where user =''

./mysqladmin privileges-flush
我也碰到过,root能登陆,其他的用户提示密码错,重起一下机器就好了.

论坛徽章:
0
4 [报告]
发表于 2006-02-09 11:10 |只看该作者
你要添加远程的访问权限

论坛徽章:
0
5 [报告]
发表于 2006-02-09 14:34 |只看该作者
mysql有多个root用户,而且权限不一样

论坛徽章:
0
6 [报告]
发表于 2006-02-10 08:49 |只看该作者
原帖由 dalarge 于 2006-2-8 21:58 发表
默认有个空用户delete from usr where user =''

./mysqladmin privileges-flush
我也碰到过,root能登陆,其他的用户提示密码错,重起一下机器就好了.


delete from user where user=''就好了,呵呵,多谢各位!
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP