16. • ibdata1やib_logfileを削除して、
再起動するといきなり出た。
• エラーメッセージ
[Warning] InnoDB: Cannot open table mysql/slave_master_info from the internal data
dictionary of InnoDB though the .frm file for the table exists. See http://dev.mysql.com/
doc/refman/5.6/en/innodb-troubleshooting.html for how you can resolve the problem.
[Warning] Info table is not ready to be used. Table 'mysql.slave_master_info' cannot be
opened.
[ERROR] Error in checking mysql.slave_master_info repository info type of TABLE.
[ERROR] Error creating master info: Error checking repositories.
[ERROR] Failed to create or recover replication info repository.
16
13年4月17日水曜日
17. まず、該当のテーブルを消す!
use mysql;
DROP TABLE IF EXISTS `innodb_index_stats`;
DROP TABLE IF EXISTS `innodb_table_stats`;
DROP TABLE IF EXISTS `slave_master_info`;
DROP TABLE IF EXISTS `slave_relay_log_info`;
DROP TABLE IF EXISTS `slave_worker_info`;
でも、.ibdは残っているのでこれも消す!
rm -rf /var/lib/mysql/mysql/innodb_index_stats.ibd
rm -rf /var/lib/mysql/mysql/innodb_table_stats.ibd
rm -rf /var/lib/mysql/mysql/slave_master_info.ibd
rm -rf /var/lib/mysql/mysql/slave_relay_log_info.ibd
rm -rf /var/lib/mysql/mysql/slave_worker_info.ibd
17
13年4月17日水曜日
22. 427 # ----------------------------------------------------------------------
428 # This will be the default config file
429 # ----------------------------------------------------------------------
430
431 $config_file= "$basedir/my.cnf";
432
433 my $cfg_template= find_in_basedir($opt,"file","my-default.cnf",
434 "share","share/mysql","support-files");
435 -e $cfg_template or cannot_find_file("my-default.cnf");
436
437 $copy_cfg_file= $config_file;
438 if (-e $copy_cfg_file)
439 {
440 $copy_cfg_file = s/my.cnf/my-new.cnf/;
441 # Too early to print warning here, the user may not notice
442 }
443 open (TEMPL, $cfg_template) or error("Could not open config template");
444 open (CFG, "> $copy_cfg_file") or error("Could not open config file");
445 while (<TEMPL>)
446 {
447 # Remove lines beginning with # *** which are template comments
448 print CFG $_ unless /^# ***/;
449 }
450 close CFG;
451 close TEMPL;
22
13年4月17日水曜日
27. • 環境 mysql5.5(Master) +
mysql5.6(Slave)
• エラーメッセージ
root@localhost[(none)]> show slave statusG
[...]
Last_IO_Error: The slave IO thread stops because the master has GTID_MODE OFF
and this server has GTID_MODE ON
27
13年4月17日水曜日
31. • エラーメッセージ
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 476849
Server version: 5.6.10-log MySQL Community Server (GPL)
Copyright (c) 2000, 2013, 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.
root@localhost[(none)]>
31
13年4月17日水曜日