- 论坛徽章:
- 0
|
这仅仅是访问权限不够
ERROR 1045 (28000): Access denied for user 'xcj'@'localhost' (using password: YES)
#新加用户服务xcj,新加的用户不能马上生效
mysql> grant all on *.* to xcj@'%' identified by "xcj_passwd";
Query OK, 0 rows affected (0.04 sec)
#生效新加用户xcj权限
mysql> flush privileges;
Query OK, 0 rows affected (0.03 sec)
[root@openfire pdf_spider]# mysql -uxcj -p'xcj_passwd'
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 4593
Server version: 5.0.45-log MySQL Community Server (GPL)
Type 'help;' or '\h' for help. Type '\c' to clear the buffer.
mysql>
#若是还不生效,就见鬼了
[ 本帖最后由 todayhero 于 2008-5-14 14:30 编辑 ] |
|