は10

2017-04-20 8 views
-1

私はC:\web\mysqlは10

にzipファイルを使用してMySQLをインストールしたMySQLのコンソールウィンドウを開くことができませんmy.cnfファイルの内容は、これらの行

[mysqld] 
basedir="C:/web/mysql" 
datadir="C:/web/data" 
explicit_defaults_for_timestamp = 1 
innodb_data_home_dir="C:/data" 

私は私は、MySQLのコンソールを開くことができないのですがありますこれらを取得する

2017-04-20T04:40:10.568049Z 0 [Warning] Gtid table is not ready to be used. Table 'mysql.gtid_executed' cannot be opened. 
2017-04-20T04:40:10.599302Z 0 [Warning] Failed to set up SSL because of the following SSL library error: SSL context is not usable without certificate and private key 
2017-04-20T04:40:10.617473Z 0 [Note] Server hostname (bind-address): '*'; port: 3306 
2017-04-20T04:40:10.621449Z 0 [Note] IPv6 is available. 
2017-04-20T04:40:10.637103Z 0 [Note] - '::' resolves to '::'; 
2017-04-20T04:40:10.637103Z 0 [Note] Server socket created on IP: '::'. 
2017-04-20T04:40:10.668373Z 0 [Warning] Failed to open optimizer cost constant tables 

2017-04-20T04:40:10.668373Z 0 [ERROR] Fatal error: Can't open and lock privilege tables: Table 'mysql.user' doesn't exist 
2017-04-20T04:40:10.715453Z 0 [ERROR] Aborting 

これを解決する方法を考えてください。

おかげ

編集は私が

"C:\web\mysql\bin\mysqld" --initialize --console 

を実行することによって、これらのエラーを解決しかし、今、私は問題が何であるかを参照してください

ERROR 2003 (HY000): Can't connect to MySQL server on 'localhost' (10061) 

としてエラーを取得しています。

おかげ

答えて