高分求教:MySql 4.0.18远程连接的问题

zhourongbiao 2004-07-30 02:48:42
我使用默认的root和空白密码可以远程登录上(在dos下使用mysql.exe),可是哪怕只要在phpMyAdmin中更改root为root1都无法登录!添加用户使用:
grant all on db_name.* to 'test'@'%' identified by '111'后使用test的用户名也还是无法登录,怎么回事?我不能总用root+空白密码登录吧?
...全文
161 3 打赏 收藏 转发到动态 举报
写回复
用AI写文章
3 条回复
切换为时间正序
请发表友善的回复…
发表回复
shuixin13 2004-07-31
  • 打赏
  • 举报
回复
grant all on db_name.* to test@"%" identified by '111'
zhourongbiao 2004-07-30
  • 打赏
  • 举报
回复
谢谢,偶还犯了错误呵呵用phpMyAdmin改用户名后应该FLUSH PRIVILEGES;
loveflea 2004-07-30
  • 打赏
  • 举报
回复
是不是你授权没有成功,建议你在本机上用mysql.exe添加一授权用户,看看有没有什么问题
如:

C:\Documents and Settings\Administrator>mysql -hfirewall -uroot -p
Enter password: ********
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 1 to server version: 4.0.18-nt

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

mysql> grant all on test.* to 'test'@'%' identified by '111';
Query OK, 0 rows affected (0.03 sec)

mysql> exit
Bye

C:\Documents and Settings\Administrator>mysql -hfirewall -utest -p
Enter password: ***
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 2 to server version: 4.0.18-nt

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

mysql> show databases;
+----------+
| Database |
+----------+
| test |
+----------+
1 row in set (0.00 sec)

mysql> exit
Bye

56,687

社区成员

发帖
与我相关
我的任务
社区描述
MySQL相关内容讨论专区
社区管理员
  • MySQL
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧