ã¯ããã«
ãã®è¨äºã¯ MySQL Advent Calendar 2024 ã·ãªã¼ãºï¼ã1æ¥ç®ã®è¨äºã§ãã
ãã£ããã·ãªã¼ãºï¼ãããã®ã§ã25æ¥éãããã©ç°¡æçãªãã¿ã§ãã¶ã£ããã§ã¿ãããã¨ã
ä½ããã¦ã©ããªã£ãï¼
ã¢ããã°ã¬ã¼ãã®æã«ä»¥ä¸ã®ã¨ã©ã¼ã¡ãã»ã¼ã¸ãåºã¦ã¢ããã°ã¬ã¼ãã§ããªãã£ãã
ã¨ã©ã¼ã¡ãã»ã¼ã¸
ã¨ã©ã¼ãã°ã«ä»¥ä¸ã®ãããªã¡ãã»ã¼ã¸ãåºã¾ãã
[ERROR] [MY-000067] [Server] unknown variable 'internal_tmp_disk_storage_engine=InnoDB'.
çç±
internal_tmp_disk_storage_engineã£ã¦ãã©ã¡ã¼ã¿ãªãã§ããã5.7.5ã§å ¥ãã8.0.16ã§åé¤ããã¾ããã
ãã®ããã8.0.16ãããåã®ãã¼ã¸ã§ã³ï¼â»5.7.5以éï¼ã§my.cnfãmy.iniã«internal_tmp_disk_storage_engineãè¨å®ãã¦ãããããã®ã¾ã¾ä½¿ã£ã¦èµ·åããã¨ä¸è¨ã®ãããªã¡ãã»ã¼ã¸ãåºãã¨ããããã§ãã
ãªã³ãã£ã¹ã¯å é¨ä¸æãã¼ãã«ã®ã¨ã³ã¸ã³ãè¨å®ã§ãããã©ã¡ã¼ã¿ã§ãããã©ã«ããInnoDBãªãã§ããããããMyISAMã«ãããã¨ãã§ãã¾ããã
çç±ã¯ããã¤ãããã¾ãããInnoDBãMyISAMããããµã¤ãºçãªå¶éãå¤ããã¨ãå é¨ä¸æãã¼ãã«ãã§ãããªããããã¦åèµ·åããªãã¨ç¸®å°ã§ããªãã®ãå°ããã¨ãã¾ãã¯ãã°å¯¾å¿ãªã©ã§ãããã
å ´åã«ãã£ã¦ã¯ã¯ã¼ãã³ã°ã«
ã¡ãªã¿ã«ããããé¢ç½ãã®ããmy.cnf | my.ini ã«æ¸ããã¦ãå ´åã ãã§ãSET PERSISTã§è¨å®ããå ´åã¯ã¨ã©ã¼ãããªãã¦ä»¥ä¸ã®ããã«ã¯ã¼ãã³ã°ã«æ ¼ä¸ãããã¨ããã§ãã
[Warning] [MY-013185] [Server] Currently unknown variable 'internal_tmp_disk_storage_engine' was read from the persisted config file.
ã¯ã¼ãã³ã°ãªãã§èµ·åã¯ãã¾ããã§ããRESET PERSISTã§åé¤ãã¨ããã»ãããã°çã«ã¯ããã§ããããã
対å¿æ¹æ³
8.0.16以ä¸ã«ã¢ããã°ã¬ã¼ãããéã«ãMySQL Serverèµ·ååã«my.cnfããinternal_tmp_disk_storage_engineãã©ã¡ã¼ã¿ã®è¨è¿°ãåé¤ãããã³ã¡ã³ãã¢ã¦ãããã°ããã ãã§ãã
ã¯ã¼ãã³ã°ã®å ´åã§ãå ã»ã©ãæ¸ããããã«RESET PERSISTã§åé¤ãã¨ããã¨ããå§ããã¾ãã
ã¨ããã§ããªãã§internal_tmp_disk_storage_engineã¯åé¤ããããã ãï¼
Bug #91377対å¿ã§ãããã
ããããåé¤ãããã¨ã§ã»ã»ã»
internal_tmp_disk_storage_engineãInnoDBã§åºå®åããããã¨ã§å¥ã®ãã°ï¼Bug #95285ï¼ãåé¿ã§ããªãã¨ããåé¡ãããã¾ããã
ããã«ã¤ãã¦ã¯ã5.7ã§ã¯5.7.31ã«ã8.0ã§ã¯8.0.21ã«ã¢ããã°ã¬ã¼ããããã¨ã§ä¿®æ£ããã¾ããã
ãã®ããã8.0.16ãã8.0.20ã使ç¨ãã¦ããå ´åã¯ãã®ãã°ã®åé¿çãç¡ãã®ã§ãã¢ããã°ã¬ã¼ããå¿ è¦ã¨ãã話ã«ãªãã¾ããã
ï¼8.0ã®è¿·èµ°ããã®è¾ºã¯ããã¾ããé ã§ããã»ã»ã»ï¼
é¢é£ããã¥ã¡ã³ã
- MySQL :: MySQL 8.0 リファレンスマニュアル :: 5.1.8 サーバーシステム変数
- MySQL :: MySQL 5.7 Release Notes :: Changes in MySQL 5.7.5 (2014-09-25, Milestone 15)
- MySQL :: MySQL 8.0 Release Notes :: Changes in MySQL 8.0.16 (2019-04-25, General Availability)
- MySQL Bugs: #91377: Can't Initialize MySQl if internal_tmp_disk_storage_engine is set to MYISAM
- MySQL Bugs: #95285: InnoDB: Page [page id: space=1337, page number=39] still fixed or dirty
- MySQL :: MySQL 5.7 Release Notes :: Changes in MySQL 5.7.31 (2020-07-13, General Availability)
- MySQL :: MySQL 8.0 Release Notes :: Changes in MySQL 8.0.21 (2020-07-13, General Availability)
çµããã«
å®ã¯ããæ¸ãã¦ããã®ã¢ãã«ã¬çµãã£ã12æ26æ¥ï½
ä¼ã¿ã«MySQLã®ãã¨ãè²ã ã¨è¦ç´ããã¨æã£ã¦ãã«ãè¨äºæ¸ãããã£ããã ãã©ããªããªãã¾ã¨ã¾ããªãã®ã§å°åºãã«ã§ãããã¤ã¯ãããã風ã«ãããã¨æã£ã¦æ¸ãã¦ããã®ã§ããã