mysql -u root
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 2
Server version: 5.0.45 Source distribution
Type 'help;' or '\h' for help. Type '\c' to clear the buffer.
mysql> create database dbname;
Query OK, 1 row affected (0.01 sec)
mysql> grant all privileges on dbname.* to 'dbname'@'localhost';
Query OK, 0 rows affected (0.00 sec)
mysql> grant all privileges on dbname.* to 'dbname'@'%';
Query OK, 0 rows affected (0.00 sec)
No comments:
Post a Comment