由 jxwaxqb 在 07-27-2003 13:58 发表:
mysql权限问题,请指教?
mysql> create database book;
ERROR 1044: Access denied for user: '@localhost' to database 'book'
是不是我的mysql用户建的不对.我按普通用户建的,ID号为501.
我爱Cisco,我更爱Linux。
由 jessew 在 07-27-2003 15:46 发表:
用管理员用户进入
use mysql;
select * from user;
看一下你的用户有没有create的权限?不过你的提示好像还没有登陆啊?
@localhost,前面是空的!!!
Work Smarter,Work GNU!
由 jxwaxqb 在 07-27-2003 16:12 发表:
还是不行:
[root@test bin]# /usr/local/mysql/bin/mysql -u mysql
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 12 to server version: 3.23.56
Type 'help;' or '\h' for help. Type '\c' to clear the buffer.
mysql> use mysql;
ERROR 1044: Access denied for user: '@localhost' to database 'mysql'
我爱Cisco,我更爱Linux。
由 jessew 在 07-28-2003 09:12 发表:
嗯
/usr/local/mysql/bin/mysql -u root -p
试试看,你的root用户有密码没有?
Work Smarter,Work GNU!
由 jxwaxqb 在 07-29-2003 09:34 发表:
[root@test /]# /usr/local/mysql/bin/mysql -u root -p
Enter password:
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 13 to server version: 3.23.56
Type 'help;' or '\h' for help. Type '\c' to clear the buffer.
mysql> create database book;
ERROR 1044: Access denied for user: '@localhost' to database 'book'
mysql>
密码是空的。
还是一样。
我爱Cisco,我更爱Linux。
由 pangdae 在 07-29-2003 10:15 发表:
我也有这个问题,求救呀!!!!!1
QQ:120044083
Email:[email protected]
由 jxwaxqb 在 07-29-2003 10:32 发表:
我觉得是本地用户权限出问题了,但不知如何解决。
我爱Cisco,我更爱Linux。
由 pangdae 在 07-29-2003 13:11 发表:
我解决了
#mysqladmin create book -p
Enter password:
试一下你的root的密码,如果不行,把你所有用过的都是一下
我也刚学mysql,请多多指教,相互研究
由 jxwaxqb 在 07-29-2003 13:21 发表:
我的还是不行啊.我觉得我和楼上的兄弟情况不一样.