MySQL 5.1升級到MySQL 5.5實戰筆記

來源:互聯網
上載者:User

之前公司大部分項目都上了5.5版本,手上剛好有個項目(自由交易平台)資料量不是很大,單台伺服器線上上跑得比較穩定,很少去搭理,為了統一版本於是打算升級到MySQL5.5版本...在賀總的協助下完成了升級工作..下面是具體的升級過程及二個大版本之間一些要注意的參數!

一、my.cnf設定檔參數的更改
#skip-locking 在5.5裡已經不識別了,改成 skip-external-locking
#log-long-format 在5.5裡已經不識別了,改成 log-short-format
#log_slow_queries 在5.5裡已經不識別了,改成 slow-query-log
#default-character-set = utf8 在5.5裡已經不識別了,改成 character-set-server = utf8


#注釋掉default_table_type = MyISAM  在5.5裡已經不識別了
#注釋掉myisam_max_extra_sort_file_size  在5.5裡已經不識別了


#innodb_file_io_threads已經不識別了,改成
innodb_read_io_threads = 8
innodb_write_io_threads = 8

# 提高重新整理髒頁數量和合并插入數量,改善磁碟IO處理能力,根據自己的磁碟IOPS能力調整

innodb_io_capacity = 2000


# 把以前的built-in檔案格式Antelope改為Barracuda
innodb_file_format = Barracuda


# 髒頁的調整,從以前的25改為90,這個值可在70--90之間選取
innodb_max_dirty_pages_pct  = 90


# 交易記錄redo log的調整,從以前的256M改為1024M
innodb_log_file_size = 1024


# 採用獨立資料表空間
innodb_file_per_table = 1


重啟MySQL服務生效:
[root@db_fb05 mysql-5.1.62]# service mysqld restart
Shutting down MySQL. SUCCESS!
Starting MySQL.. SUCCESS!
[root@db_fb05 mysql-5.1.62]# 

推薦閱讀:

MySQL 5.5 Command Line Client SQL常用語句

Ubuntu下Nginx做負載實現高效能WEB伺服器5---MySQL主主同步

生產環境MySQL主主同步主鍵衝突處理

MySQL主從失敗 錯誤Got fatal error 1236

MySQL主從複製,單台伺服器上實施

Ubuntu下編譯安裝MySQL雙執行個體並配置主從複製
 

  • 1
  • 2
  • 下一頁

相關文章

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.