mysql 版本號mysql Ver 14.14 Distrib 5.1.73, for redhat-linux-gnu (x86_64) using readline 5.1 系統 是 centos6.5的
問題爲 : mysql -u 隨便輸入一個不存在的用戶 都能登錄到數據庫中
mysql.user庫裏的數據爲:
mysql> select user,password from user;
+------+-------------------------------------------+
| user | password |
+------+-------------------------------------------+
| root | *6BB4837EB74329105EE4568DDA7DC67ED2CA2AD9 |
| cat | *6BB4837EB74329105EE4568DDA7DC67ED2CA2AD9 |
+------+-------------------------------------------+
2 rows in set (0.00 sec)
實驗登入 false:
Connection id:
33
Current database:
Current user:
false@localhost #false 登陸成功 普通用戶權限
SSL:
Not in use
Current pager:
stdout
Using outfile:
''
Using delimiter:
;
Server version:
5.1.73 Source distribution
Protocol version:
10mysql
錯誤故障大體像這樣 只要作下安全初始化 就能夠新手們注意的事 (尤爲是沒有人帶的新手,自學真的很坑 嘿嘿) mysql_secure_installlinux