本篇文章為大家展示了MySQL5.1怎樣升級到5.6,內(nèi)容簡明扼要并且容易理解,絕對能使你眼前一亮,通過這篇文章的詳細介紹希望你能有所收獲。
10年積累的成都網(wǎng)站制作、做網(wǎng)站經(jīng)驗,可以快速應對客戶對網(wǎng)站的新想法和需求。提供各種問題對應的解決方案。讓選擇我們的客戶得到更好、更有力的網(wǎng)絡服務。我雖然不認識你,你也不認識我。但先網(wǎng)站設計后付款的網(wǎng)站建設流程,更有漳州免費網(wǎng)站建設讓你可以放心的選擇與我們合作。
卸載原有mysql版本
rpm -qa | grep -i mysql | xargs rpm -ev --nodeps
去官網(wǎng)下載最新的社區(qū)版mysql5.6版本
官網(wǎng)地址:www.mysql.com
這個tar包里含有許多與MYSQL相關的安裝包,需要哪個安裝哪個,解壓之后的包
安裝mysql的服務器端和客戶端
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*文件重命名或拷貝出來
升級數(shù)據(jù)庫
[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
啟動mysql進程
mysqld_safe &
上述內(nèi)容就是mysql5.1怎樣升級到5.6,你們學到知識或技能了嗎?如果還想學到更多技能或者豐富自己的知識儲備,歡迎關注創(chuàng)新互聯(lián)行業(yè)資訊頻道。
分享標題:mysql5.1怎樣升級到5.6
分享URL:http://www.chinadenli.net/article16/ieojdg.html
成都網(wǎng)站建設公司_創(chuàng)新互聯(lián),為您提供品牌網(wǎng)站建設、微信小程序、網(wǎng)站導航、網(wǎng)站內(nèi)鏈、手機網(wǎng)站建設、靜態(tài)網(wǎng)站
聲明:本網(wǎng)站發(fā)布的內(nèi)容(圖片、視頻和文字)以用戶投稿、用戶轉(zhuǎn)載內(nèi)容為主,如果涉及侵權請盡快告知,我們將會在第一時間刪除。文章觀點不代表本網(wǎng)站立場,如需處理請聯(lián)系客服。電話:028-86922220;郵箱:631063699@qq.com。內(nèi)容未經(jīng)允許不得轉(zhuǎn)載,或轉(zhuǎn)載時需注明來源: 創(chuàng)新互聯(lián)