- 论坛徽章:
- 1
|
[root@localhost sort]# /usr/local/mysql5.22/bin/mysql -uroot -p0000
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 4939 to server version: 5.0.22-log
Type 'help;' or '\h' for help. Type '\c' to clear the buffer.
mysql> grant all on *.* to www identified by '9999';
Query OK, 0 rows affected (0.00 sec)
mysql> flush privileges;
Query OK, 0 rows affected (0.00 sec)
mysql> quit
Bye
[root@localhost sort]# /usr/local/mysql5.22/bin/mysql -uwww -p9999
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 4941 to server version: 5.0.22-log
Type 'help;' or '\h' for help. Type '\c' to clear the buffer.
mysql> use sort;
ERROR 1044 (42000): Access denied for user ''@'localhost' to database 'sort'
mysql> |
|