這篇文章主要介紹“MySQL 5.6.36怎么升級到5.6.40”,在日常操作中,相信很多人在MySQL 5.6.36怎么升級到5.6.40問題上存在疑惑,小編查閱了各式資料,整理出簡單好用的操作方法,希望對大家解答”MySQL 5.6.36怎么升級到5.6.40”的疑惑有所幫助!接下來,請跟著小編一起來學習吧!
1、將版本為5.6.40的mysqld拷貝到本地/usr/local/mysql/bin目錄下
2、將版本為5.6.40的錯誤碼文件errmsg.sys拷貝到本地/usr/local/mysql/share/english/目錄下
3、關閉本地MySQL服務
mysqladmin -uroot -p shutdown
4、啟動MySQL
/usr/local/mysql/bin/mysqld_safe --defaults-file=/etc/my.cnf &
[1] 872
[root@oneproxy software]# 180612 10:09:23 mysqld_safe Logging to '/mysql/data/oneproxy.err'.
180612 10:09:23 mysqld_safe Starting mysqld daemon with databases from /mysql/data
5、驗證數據庫版本以及可用性
[root@oneproxy software]# mysql -uroot -pmysql
Warning: Using a password on the command line interface can be insecure.
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 1
Server version: 5.6.40 Source distribution
Copyright (c) 2000, 2017, Oracle and/or its affiliates. All rights reserved.
Oracle is a registered trademark of Oracle Corporation and/or its
affiliates. Other names may be trademarks of their respective
owners.
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
到此,關于“MySQL 5.6.36怎么升級到5.6.40”的學習就結束了,希望能夠解決大家的疑惑。理論與實踐的搭配能更好的幫助大家學習,快去試試吧!若想繼續學習更多相關知識,請繼續關注億速云網站,小編會繼續努力為大家帶來更多實用的文章!
免責聲明:本站發布的內容(圖片、視頻和文字)以原創、轉載和分享為主,文章觀點不代表本網站立場,如果涉及侵權請聯系站長郵箱:is@yisu.com進行舉報,并提供相關證據,一經查實,將立刻刪除涉嫌侵權內容。