2016-11-12 4 views
2

Я использовал MySQL 5.7.16 сообщество и CentOS 7.Нет временный пароль в mysqld.log

Я слежу видео tutorial установить MySQL:

  1. Wget http://dev.mysql.com/get/mysql57-community-release-el7-9.noarch.rpm
  2. ни localinstall DEV .mysql.com/get/mysql57-community-release-el7-9.noarch.rpm
  3. yum repolist enabled | Grep "MySQL. -community."
  4. ни установить MySQL-сервер сообщества
  5. службу MYSQLD начать

После запуска MySQL, я могу видеть состояние живой (бег) с service mysqld status.

Но я могу»получить что-нибудь от: grep 'temporary password' /var/log/mysqld.log

msyqld.log (игнорировать нормальные журналы):

[Warning] InnoDB: Cannot open table mysql/plugin from the internal data dictionary of InnoDB though the .frm file for the table exists. 
mysqld: Table 'mysql.plugin' doesn't exist 

[ERROR] Can't open the mysql.plugin table. Please run mysql_upgrade to create it. 

[Warning] InnoDB: Cannot open table mysql/gtid_executed from the internal data dictionary of InnoDB though the .frm file for the table exists. 
mysqld: Table 'mysql.gtid_executed' doesn't exist 

[Warning] Gtid table is not ready to be used. Table 'mysql.gtid_executed' cannot be opened. 

[Warning] InnoDB: Cannot open table mysql/server_cost from the internal data dictionary of InnoDB though the .frm file for the table exists. 

[Warning] Failed to open optimizer cost constant tables 

[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. 

[Warning] Can't open and lock time zone table: Table 'mysql.time_zone_leap_second' doesn't exist trying to live without them 

[Warning] InnoDB: Cannot open table mysql/servers from the internal data dictionary of InnoDB though the .frm file for the table exists. 

[ERROR] Can't open and lock privilege tables: Table 'mysql.servers' doesn't exist 

Цените любую помощь!

ответ

5

Я понял это.

  1. Я устанавливаю centos 7 с выбранным mysql, версия mysql - 5.5.
  2. Удалить это: yum удалить mysql-serverl.
  3. Установить 5.7.16 в этом уроке.
  4. Имеет эти ошибки.
  5. Yum удалить mysql-community-server, установить 5.7 снова.
  6. Все еще есть эти ошибки.
  7. Yum удалить mysql-community-server, но удалить dir/var/lib/mysql.
  8. После этого установите снова, он работает.

Ключевым моментом является удаление/var/lib/mysql вручную.

+1

Спасибо, удалив '/ var/lib/mysql' и переустановку mysql сделал это для меня! – Peter

Смежные вопросы