skip-grant
/etc/init.d/mysqld restart
重啓數據庫mysql -uroot
就能夠不須要密碼直接root登陸數據庫了use mysql
desc user;
查看 user 表全部字段update user set authentication_string=password("aming") where user='root';
skip-grant
代碼刪除show variables like 'slow%';
/etc/init.d/mysqld restart
重啓數據庫select sleep(5);
這樣模擬一個5秒的查詢show processlist;
和 show full processlist;