0
[[email protected] ~]# mysql> CREATE DATABASE foo;
[[email protected] ~]# mysql> GRANT ALL ON foo.* TO [email protected]'my home ip' IDENTIFIED BY 'aron1252';
[[email protected] ~]# mysql> update user set Host='my home ip' where user='webadmin';
[[email protected] ~]# GRANT ALL ON foo.* TO [email protected]'localhost' IDENTIFIED BY 'newpass';
-bash: GRANT: command not found
[[email protected] ~]# mysql> GRANT ALL ON foo.* TO [email protected]'localhost' IDENTIFIED BY 'newpass';
[[email protected] ~]# mysql> update user set Host='localhost' where user='webadmin';
[[email protected] ~]# UPDATE mysql.user SET Password=PASSWORD('password') WHERE User='root';
-bash: syntax error near unexpected token `('
[[email protected] ~]# UPDATE mysql.user SET Password=newpass WHERE User='root';
-bash: UPDATE: command not found
[[email protected] ~]# mysql> UPDATE mysql.user SET Password=newpass WHERE User='root';
[[email protected] ~]# mysql>FLUSH PRIVILEGES;
ERROR 1044 (42000): Access denied for user ''@'localhost' to database 'PRIVILEGES'
[[email protected] ~]# mysql -u root p- newpass
我試圖啓用遠程IP後鎖定,我的外殼仍然打開,我可以從膩子訪問它,但我鎖定了webmin!這就是我跑的一切!鎖定的MySQL數據庫通過webmin!