Adding New User Accounts to MySQL
@ 13:21 | linkki
dev.mysql.com
A brief and applied practical example:
Disclaimer: I won't be held responsible for actually using salasana as your password! It's a demonstration example, certainly not a real-life example.
The link wouldn't say how to exit from the mysql prompt so I used Ctrl-C. Don't know the proper way to leave yet.
A brief and applied practical example:
$ mysql --user=root --password mysql
Enter password:
Reading table information for completion of table and column names
You can turn off this feature to get a quicker startup with -A
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 11 to server version: 4.0.21-log
Type 'help;' or '\h' for help. Type '\c' to clear the buffer.
mysql> GRANT ALL PRIVILEGES ON *.* TO 'jani'@'localhost' IDENTIFIED BY 'salasana' WITH GRANT OPTION;
Query OK, 0 rows affected (0.11 sec)
Enter password:
Reading table information for completion of table and column names
You can turn off this feature to get a quicker startup with -A
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 11 to server version: 4.0.21-log
Type 'help;' or '\h' for help. Type '\c' to clear the buffer.
mysql> GRANT ALL PRIVILEGES ON *.* TO 'jani'@'localhost' IDENTIFIED BY 'salasana' WITH GRANT OPTION;
Query OK, 0 rows affected (0.11 sec)
Disclaimer: I won't be held responsible for actually using salasana as your password! It's a demonstration example, certainly not a real-life example.
The link wouldn't say how to exit from the mysql prompt so I used Ctrl-C. Don't know the proper way to leave yet.
Kommentit (0):
Kommentointi on suljettu.