虛擬機(jī)中安裝數(shù)據(jù)庫(kù)客戶端
2.安裝完畢,啟動(dòng)數(shù)據(jù)庫(kù):service mysqld start
3.mysql的默認(rèn)用戶名是root 密碼為空
4.linux中登錄mysql:mysql -u root -p回車后輸入密碼
5.登錄成功可霎,切換到mysql 數(shù)據(jù)庫(kù)use mysql
7.% localhost 區(qū)別
grant? all privileges on *.* to 'root'@'%'? identified by '123456'? with grant option;#為root用戶賦權(quán)
flush privileges;#刷新權(quán)限
9.用navicate 進(jìn)行連接(如果連接不上,記得關(guān)閉防火墻!!)
關(guān)閉防火墻:service iptables stop
連接成功
10.卸載mysql? ? ?
? ? ? yum -y remove mysql*
? ? ? 查找mysql安裝文件? find / -name mysql
? ? ? 用rm -rf 刪除查找出的mysql文件