Created
March 17, 2011 00:15
-
-
Save handersonbf/873608 to your computer and use it in GitHub Desktop.
MySQL Remote Permissions
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| root@webby4751:~# mysql -u root -p | |
| Enter password: | |
| Welcome to the MySQL monitor. Commands end with ; or \g. | |
| Your MySQL connection id is 295 | |
| Server version: 5.0.67-0ubuntu6 (Ubuntu) | |
| mysql> use bd | |
| 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> show grants for root@localhost; | |
| +----------------------------------------------------------------------------------------------------------------------------------------+ | |
| | Grants for root@localhost | | |
| +----------------------------------------------------------------------------------------------------------------------------------------+ | |
| | GRANT ALL PRIVILEGES ON *.* TO 'root'@'localhost' IDENTIFIED BY PASSWORD '*8888888888888888888' WITH GRANT OPTION | | |
| +----------------------------------------------------------------------------------------------------------------------------------------+ | |
| 1 row in set (0.00 sec) | |
| mysql> grant all privileges on BD.* to root identified by "root" | |
| -> ; | |
| Query OK, 0 rows affected (0.15 sec) | |
| mysql> flush privileges; | |
| Query OK, 0 rows affected (0.08 sec) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment