mysql 安裝 linux

huzhichengforce發表於2015-02-28
rpm -ivh MySQL-client-5.6.22-1.el6.x86_64.rpm
rpm -ivh  MySQL-devel-5.6.22-1.el6.x86_64.rpm
rpm -ivh  MySQL-server-5.6.22-1.el6.x86_64.rpm

第一次安裝完成後 會隨機產生一個密碼:

A RANDOM PASSWORD HAS BEEN SET FOR THE MySQL root USER !
You will find that password in '/root/.mysql_secret'.

用隨機密碼登入:


第一次登入後需要修改密碼:
You must change that password on your first connect,
no other statement but 'SET PASSWORD' will be accepted.
See the manual for the semantics of the 'password expired' flag.

來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/26764973/viewspace-1443610/,如需轉載,請註明出處,否則將追究法律責任。

相關文章