2016-11-12 2 views
2

んの仮パスワード私はMySQLをインストールするには、ビデオtutorialを以下のよMySQLの5.7.16コミュニティとCentOSの7mysqld.log

を使用:

  1. wgetのhttp://dev.mysql.com/get/mysql57-community-release-el7-9.noarch.rpm
  2. yumをlocalinstall DEVに.mysql.com/get/mysql57-community-release-el7-9.noarch.rpm
  3. yum repolist enabled | grepの "mysqlの。-community。"
  4. yumを
  5. サービスは、MySQLを起動した後

を開始して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 remove 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

関連する問題