對所有MySQL用戶使用口令。記住,如果other_user沒有口令,任何人能簡單地用mysql -u other_user db_name作為任何其它的人登錄。對客戶機/服務器應用程序,客戶可以指定任何用戶名是常見的做法。在你運行它以前,你可以通過編輯mysql_install_db腳本改變所有用戶的口令,或僅僅MySQL root的口令,象這樣: CODE: shell> mysql -u root mysql mysql> UPDATE user SET Password=PASSWORD( ew_password) WHERE user= oot; mysql> FLUSH PRIVILEGES;