好湿?好紧?好多水好爽自慰,久久久噜久噜久久综合,成人做爰A片免费看黄冈,机机对机机30分钟无遮挡

主頁 > 知識庫 > MySQL修改innodb_data_file_path參數的一些注意事項

MySQL修改innodb_data_file_path參數的一些注意事項

熱門標簽:福建外呼電銷機器人加盟 400電話申請廠家現貨 自己做地圖標注需要些什么 中國地圖標注公司 百度地圖標注要什么軟件 昌德訊外呼系統 電話機器人的價格多少錢一個月 天津公司外呼系統軟件 徐涇鎮騰訊地圖標注

前言

innodb_data_file_path用來指定innodb tablespace文件,如果我們不在My.cnf文件中指定innodb_data_home_dir和innodb_data_file_path那么默認會在datadir目錄下創建ibdata1 作為innodb tablespace。

說明

在測試環境下沒有設置過多的詳細參數就初始化并啟動了服務,后期優化的過程中發現innodb_data_file_path設置過小:

root@node1 14:59: [(none)]> show variables like '%innodb_data_file_path%';
+-----------------------+------------------------+
| Variable_name | Value  |
+-----------------------+------------------------+
| innodb_data_file_path | ibdata1:12M:autoextend |
+-----------------------+------------------------+
1 row in set (0.00 sec)

root@node1 14:59: [(none)]>

當沒有配置innodb_data_file_path時,默認innodb_data_file_path = ibdata1:12M:autoextend

[mysqld]
innodb_data_file_path = ibdata1:12M:autoextend

當需要改為1G時,不能直接在配置文件把 ibdata1 改為 1G ,

[mysqld]
innodb_data_file_path = ibdata1:1G:autoextend

否則啟動服務之后,從錯誤日志看到如下報錯:

2019-03-29T06:47:32.044316Z 0 [ERROR] InnoDB: The Auto-extending innodb_system data file './ibdata1' is of a different size 768 pages (rounded down to MB) than specified in the .cnf file: initial 65536 pages, max 0 (relevant if non-zero) pages!

大致意思就是ibdata1的大小不是 65536page*16KB/1024KB=1G ,而是 786page*16KB/1024KB=12M
(未使用壓縮頁)

方法一:推薦

而應該再添加一個 ibdata2:1G ,如下:

[mysqld]
innodb_data_file_path = ibdata1:12M;ibdata2:1G:autoextend

重啟數據庫!

方法二:不推薦

直接改為如下的話

[mysqld]
innodb_data_file_path = ibdata1:1G:autoextend

可以刪除$mysql_datadir目錄下 ibdata1、ib_logfile0、ib_logfile1 文件:

rm -f ibdata* ib_logfile*

也可以啟動MySQL,但是mysql錯誤日志里會報如下錯誤:

2019-03-29T07:10:47.844560Z 0 [Warning] Could not increase number of max_open_files to more than 5000 (request: 65535)
2019-03-29T07:10:47.844686Z 0 [Warning] Changed limits: table_open_cache: 1983 (requested 2000)
2019-03-29T07:10:48.028262Z 0 [Warning] 'NO_AUTO_CREATE_USER' sql mode was not set.
2019-03-29T07:10:48.147653Z 0 [Warning] InnoDB: Cannot open table mysql/plugin from the internal data dictionary of InnoDB though the .frm file for the table exists. Please refer to http://dev.mysql.com/doc/refman/5.7/en/innodb-troubleshooting.html for how to resolve the issue.
mysqld: Table 'mysql.plugin' doesn't exist
2019-03-29T07:10:48.147775Z 0 [ERROR] Can't open the mysql.plugin table. Please run mysql_upgrade to create it.
2019-03-29T07:10:48.163444Z 0 [Warning] InnoDB: Cannot open table mysql/gtid_executed from the internal data dictionary of InnoDB though the .frm file for the table exists. Please refer to http://dev.mysql.com/doc/refman/5.7/en/innodb-troubleshooting.html for how to resolve the issue.
mysqld: Table 'mysql.gtid_executed' doesn't exist
2019-03-29T07:10:48.163502Z 0 [Warning] Gtid table is not ready to be used. Table 'mysql.gtid_executed' cannot be opened.
2019-03-29T07:10:48.163658Z 0 [Warning] InnoDB: Cannot open table mysql/gtid_executed from the internal data dictionary of InnoDB though the .frm file for the table exists. Please refer to http://dev.mysql.com/doc/refman/5.7/en/innodb-troubleshooting.html for how to resolve the issue.
mysqld: Table 'mysql.gtid_executed' doesn't exist
2019-03-29T07:10:48.163711Z 0 [Warning] Gtid table is not ready to be used. Table 'mysql.gtid_executed' cannot be opened.
2019-03-29T07:10:48.164619Z 0 [Warning] Failed to set up SSL because of the following SSL library error: SSL context is not usable without certificate and private key
2019-03-29T07:10:48.166805Z 0 [Warning] InnoDB: Cannot open table mysql/server_cost from the internal data dictionary of InnoDB though the .frm file for the table exists. Please refer to http://dev.mysql.com/doc/refman/5.7/en/innodb-troubleshooting.html for how to resolve the issue.
2019-03-29T07:10:48.166891Z 0 [Warning] Failed to open optimizer cost constant tables

2019-03-29T07:10:48.168072Z 0 [Warning] InnoDB: Cannot open table mysql/time_zone_leap_second from the internal data dictionary of InnoDB though the .frm file for the table exists. Please refer to http://dev.mysql.com/doc/refman/5.7/en/innodb-troubleshooting.html for how to resolve the issue.
2019-03-29T07:10:48.168165Z 0 [Warning] Can't open and lock time zone table: Table 'mysql.time_zone_leap_second' doesn't exist trying to live without them
2019-03-29T07:10:48.169454Z 0 [Warning] InnoDB: Cannot open table mysql/servers from the internal data dictionary of InnoDB though the .frm file for the table exists. Please refer to http://dev.mysql.com/doc/refman/5.7/en/innodb-troubleshooting.html for how to resolve the issue.
2019-03-29T07:10:48.169527Z 0 [ERROR] Can't open and lock privilege tables: Table 'mysql.servers' doesn't exist
2019-03-29T07:10:48.170042Z 0 [Warning] InnoDB: Cannot open table mysql/slave_master_info from the internal data dictionary of InnoDB though the .frm file for the table exists. Please refer to http://dev.mysql.com/doc/refman/5.7/en/innodb-troubleshooting.html for how to resolve the issue.
2019-03-29T07:10:48.170617Z 0 [Warning] InnoDB: Cannot open table mysql/slave_relay_log_info from the internal data dictionary of InnoDB though the .frm file for the table exists. Please refer to http://dev.mysql.com/doc/refman/5.7/en/innodb-troubleshooting.html for how to resolve the issue.
2019-03-29T07:10:48.170946Z 0 [Warning] InnoDB: Cannot open table mysql/slave_master_info from the internal data dictionary of InnoDB though the .frm file for the table exists. Please refer to http://dev.mysql.com/doc/refman/5.7/en/innodb-troubleshooting.html for how to resolve the issue.
2019-03-29T07:10:48.171046Z 0 [Warning] Info table is not ready to be used. Table 'mysql.slave_master_info' cannot be opened.
2019-03-29T07:10:48.171272Z 0 [Warning] InnoDB: Cannot open table mysql/slave_worker_info from the internal data dictionary of InnoDB though the .frm file for the table exists. Please refer to http://dev.mysql.com/doc/refman/5.7/en/innodb-troubleshooting.html for how to resolve the issue.
2019-03-29T07:10:48.171626Z 0 [Warning] InnoDB: Cannot open table mysql/slave_relay_log_info from the internal data dictionary of InnoDB though the .frm file for the table exists. Please refer to http://dev.mysql.com/doc/refman/5.7/en/innodb-troubleshooting.html for how to resolve the issue.
2019-03-29T07:10:48.171688Z 0 [Warning] Info table is not ready to be used. Table 'mysql.slave_relay_log_info' cannot be opened.

總結

以上就是這篇文章的全部內容了,希望本文的內容對大家的學習或者工作具有一定的參考學習價值,謝謝大家對腳本之家的支持。

您可能感興趣的文章:
  • MySQL btree索引與hash索引區別
  • 簡單了解mysql InnoDB MyISAM相關區別
  • 簡述MySQL InnoDB存儲引擎
  • MySQL Innodb 存儲結構 和 存儲Null值 用法詳解
  • MySQL啟動報錯問題InnoDB:Unable to lock/ibdata1 error
  • 詳解MySQL(InnoDB)是如何處理死鎖的
  • mysql更改引擎(InnoDB,MyISAM)的方法
  • 可以改善mysql性能的InnoDB配置參數
  • mysql報錯:MySQL server version for the right syntax to use near type=InnoDB的解決方法
  • MySQL數據庫innodb啟動失敗無法重啟的解決方法
  • 獲取 MySQL innodb B+tree 的高度的方法

標簽:陜西 黔西 梅河口 北京 鄂爾多斯 駐馬店 昌都 荊門

巨人網絡通訊聲明:本文標題《MySQL修改innodb_data_file_path參數的一些注意事項》,本文關鍵詞  MySQL,修改,innodb,data,file,;如發現本文內容存在版權問題,煩請提供相關信息告之我們,我們將及時溝通與處理。本站內容系統采集于網絡,涉及言論、版權與本站無關。
  • 相關文章
  • 下面列出與本文章《MySQL修改innodb_data_file_path參數的一些注意事項》相關的同類信息!
  • 本頁收集關于MySQL修改innodb_data_file_path參數的一些注意事項的相關信息資訊供網民參考!
  • 推薦文章
    主站蜘蛛池模板: 孕妇性猛交xxxxxhd| 最近免费韩国日本视频| 98午夜AV国产精品一区二区| 嗯啊啊好深| jessejanevideoxxx| 韩国公妇理伦片免费观看| Wc女厕偷拍在线视频| 模特走秀全透视服装女装新款| 国产免费一区二区三区四区视频| 一个人看的电影晚上看的电影| 想看黄色片| 三根硕大一起挤入她的花苞演员表| 久久伊人亚洲| 受被多人lj双性美人| 欧美激情第一欧美精品| 公交车上和陌生人做爰| 色欲www在线永久网站免费观看| 日韩精品 一区二区三区| 97伦理片| 国产精品福利自产拍网站| 师娘求放过完整版全文阅读 | 娇喘h校园h乳尖h| 玉娟的性荡生活| 清纯女被强行糟蹋bd| 日韩 欧美 国产 动漫 制服| 中国老太婆bbbbbxxxxx| 午夜未成片午夜看A片| 免费一级毛片一级A片成人片不卡| 乡村乱情小雷| 我和恩人张局共享娇妻| 久久精品人妻一区二区蜜桃| 巨污gif动态图出处第900期| 国产一级婬片A视频免费观看| 美女厕拍| 69精品| 日本一级av无码毛片www| 爽?好大?快?要尿了视频| 变大变粗变长最快的方法| 一区二区免费视频| 国产成人综合精品| 国产91??丝袜在线播放九色|