在mysql中出现如下错误:
mysql> alter user root@localhost identified by 'westos';
ERROR 1290 (HY000): The MySQL server is running with the --skip-grant-tables option so it cannot execute this statement
解决方法:
mysql> flush privileges;
Query OK, 0 rows affected (0.02 sec)
mysql> alter user root@localhost identified by 'westos';
Query OK, 0 rows affected (0.01 sec)