· centos6.5上安裝mysql5.6.26
通過rpm包安裝:
[root@cobub01 mysql-5.6]# rpm -iv mysql-server-5.6.26-1.el6.x86_64.rpm
warning: mysql-server-5.6.26-1.el6.x86_64.rpm: header v3 dsa/sha1 signature, key id 5072e1f5: nokey
preparing packages for installation...
file /usr/share/mysql/czech/errmsg.sys from install of mysql-server-5.6.26-1.el6.x86_64 conflicts with file from package mysql-libs-5.1.73-5.el6_6.x86_64
.............................
移除已經存在的 mysql-libs-5.1.73-5.el6_6.x86_64
yum remove mysql-libs-5.1.73-5.el6_6.x86_64
解除安裝成功後,重新執行rpm安裝:
[root@cobub01 mysql-5.6]# rpm -iv mysql-server-5.6.26-1.el6.x86_64.rpm
warning: mysql-server-5.6.26-1.el6.x86_64.rpm: header v3 dsa/sha1 signature, key id 5072e1f5: nokey
warning: user mysql does not exist - using root
warning: group mysql does not exist - using root
................................
2015-09-21 04:20:10 6445 [note] innodb: fts optimize thread exiting.
2015-09-21 04:20:10 6445 [note] innodb: starting shutdown...
2015-09-21 04:20:17 6445 [note] innodb: shutdown completed; log sequence number 1625987
安裝mysql-client:
[root@cobub01 mysql-5.6]# rpm -iv mysql-client-5.6.26-1.el6.x86_64.rpm
warning: mysql-client-5.6.26-1.el6.x86_64.rpm: header v3 dsa/sha1 signature, key id 5072e1f5: nokey
preparing packages for installation...
mysql-client-5.6.26-1.el6
啟動mysql:
chkconfig mysql on // 設定mysql開機啟動
service mysql start
重置mysql 預設的root使用者密碼(在/root/.mysql_secret中獲取安裝後自動生成的root隨機密碼)
· 解除安裝mysql
a)檢視系統中是否以rpm包安裝的mysql:
[root@cobub04 mysql-5.6]# rpm -qa | grep -i mysql
mysql-server-5.6.26-1.el6.x86_64
mysql-client-5.6.26-1.el6.x86_64
解除安裝mysql-server-5.6.26-1.el6.x86_64和mysql-client-5.6.26-1.el6.x86_64
[root@cobub04 mysql-5.6]# rpm -e mysql-server-5.6.26-1.el6.x86_64
b) 檢視有沒有mysql服務
[root@linux ~]# chkconfig --list | grep -i mysql
刪除服務
[root@linux ~]# chkconfig --del mysql
c)刪除分散mysql資料夾
[root@linux ~]# whereis mysql
mysql: /usr/lib/mysql /usr/share/mysql
分別刪除
[root@linux lib]# rm -rf /usr/lib/mysql/
[root@linux lib]# rm -rf /usr/share/mysql
Windows下mysql服務的安裝與解除安裝
安裝 mysqld install 也可以指定mysql安裝服務的檔案 my.ini檔案配置好後就可以在cmd中安裝mysqld服務了,在cmd中執行命令 mysqld install mysql defaults file d program files x86 mysql my.ini 其中的m...
Windows下mysql服務的安裝與解除安裝
至 安裝 mysqld install 也可以指定mysql安裝服務的檔案 my.ini檔案配置好後就可以在cmd中安裝mysqld服務了,在cmd中執行命令 mysqld install mysql defaults file d program files x86 mysql my.ini 其中...
MySQL學習筆記 MySQL安裝配置與解除安裝
mysql安裝配置 1.2 mysql安裝和配置 1.3 mysql配置環境變數 mysql解除安裝 2 選擇mysql installer for windows 3 這裡有兩個選擇 1.2 mysql安裝和配置 1 安裝.net framwork 4.5.2 2 安裝和配置mysql在使用cmd...