十年網(wǎng)站開(kāi)發(fā)經(jīng)驗(yàn) + 多家企業(yè)客戶 + 靠譜的建站團(tuán)隊(duì)
量身定制 + 運(yùn)營(yíng)維護(hù)+專業(yè)推廣+無(wú)憂售后,網(wǎng)站問(wèn)題一站解決
本篇文章為大家展示了mysql5.1怎樣升級(jí)到5.6,內(nèi)容簡(jiǎn)明扼要并且容易理解,絕對(duì)能使你眼前一亮,通過(guò)這篇文章的詳細(xì)介紹希望你能有所收獲。
卸載原有mysql版本
rpm -qa | grep -i mysql | xargs rpm -ev --nodeps
去官網(wǎng)下載最新的社區(qū)版mysql5.6版本
官網(wǎng)地址:www.mysql.com
這個(gè)tar包里含有許多與MYSQL相關(guān)的安裝包,需要哪個(gè)安裝哪個(gè),解壓之后的包
安裝mysql的服務(wù)器端和客戶端
rpm -ivh mysql-server-5.6.35-1.el6.x86-64.rpm
rpm -ivh mysql-client-5.6.35-1.el6.x86_64.rpm
安裝完之后,將/var/lib/myql目錄下的ib*文件重命名或拷貝出來(lái)
升級(jí)數(shù)據(jù)庫(kù)
[root@msl3 ~]# mysql_upgrade --protocol=tcp -P3306 -p
Enter password:
Looking for 'mysql' as: mysql
Looking for 'mysqlcheck' as: mysqlcheck
Running 'mysqlcheck' with connection arguments: '--protocol=tcp' '--port=3306'
Warning: Using a password on the command line interface can be insecure.
Running 'mysqlcheck' with connection arguments: '--protocol=tcp' '--port=3306'
Warning: Using a password on the command line interface can be insecure.
mysql.columns_priv
mysql.db
mysql.event
mysql.func
mysql.general_log
mysql.help_category
mysql.help_keyword
mysql.help_relation
mysql.help_topic
mysql.host
mysql.ndb_binlog_index
mysql.plugin
mysql.proc
mysql.procs_priv
mysql.servers
mysql.slow_log
mysql.tables_priv
mysql.time_zone
mysql.time_zone_leap_second
mysql.time_zone_name
mysql.time_zone_transition
mysql.time_zone_transition_type
mysql.user
Running 'mysql_fix_privilege_tables'...
Warning: Using a password on the command line interface can be insecure.
Running 'mysqlcheck' with connection arguments: '--protocol=tcp' '--port=3306'
Warning: Using a password on the command line interface can be insecure.
Running 'mysqlcheck' with connection arguments: '--protocol=tcp' '--port=3306'
Warning: Using a password on the command line interface can be insecure.
OK
啟動(dòng)mysql進(jìn)程
mysqld_safe &
上述內(nèi)容就是mysql5.1怎樣升級(jí)到5.6,你們學(xué)到知識(shí)或技能了嗎?如果還想學(xué)到更多技能或者豐富自己的知識(shí)儲(chǔ)備,歡迎關(guān)注創(chuàng)新互聯(lián)-成都網(wǎng)站建設(shè)公司行業(yè)資訊頻道。