Listing 4 Creating additional grants
$ mysql -uroot
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 9 to server version: 4.1.11-Debian_4sarge2-log
Type 'help;' or '\h' for help. Type '\c' to clear the buffer.
mysql> use mysql;
Reading table information for completion of table and column names
You can turn off this feature to get a quicker startup with -A
Database changed
mysql> GRANT ALL ON *.* TO `root`@`localhost` WITH GRANT OPTION;
Query OK, 0 rows affected (0.02 sec)
mysql> GRANT ALL ON *.* TO `root`@`127.0.0.1` WITH GRANT OPTION;
Query OK, 0 rows affected (0.01 sec)
mysql> GRANT ALL ON *.* TO `root`@`debian` WITH GRANT OPTION;
Query OK, 0 rows affected (0.01 sec)
mysql> flush privileges;
Query OK, 0 rows affected (0.01 sec)
mysql> Bye
|