全部博文(89)
分类:
2008-10-23 09:22:02
[hantsy@localhost public_html]$ mysql -u root -p
Enter password:
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 2
Server version: 5.0.51a Source distribution
Type 'help;' or '\h' for help. Type '\c' to clear the buffer.
mysql>
mysql> create database cakeblog;
Query OK, 1 row affected (0.01 sec)
mysql> create user cakeuser identified by 'cakeuser';
Query OK, 0 rows affected (0.08 sec)
mysql> grant all privileges on cakeblog.* to 'cakeuser'@'localhost' identified by 'cakeuser';
Query OK, 0 rows affected (0.00 sec)
mysql> flush privileges;
Query OK, 0 rows affected (0.00 sec)