※ この募集は締め切られました。
rails mysqlエラーを解消していただける人を募集しています!
rails で新規アプリを作成し、
rails db:createを実行したところ
Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2)
という表記がでて、起動できませんでした。
tail -f /usr/local/var/mysql/*******.local.err
上記コマンドでエラーログを確認したところ、下記のようなログが表示されましが、そこからうまく進めることができていない状況です。
021-03-29 18:32:15 73423 [Note] InnoDB: Waiting for purge to start
2021-03-29 18:32:15 73423 [Note] InnoDB: 5.6.51 started; log sequence number 1600607
2021-03-29 18:32:15 73423 [Note] RSA private key file not found: /usr/local/var/mysql//private_key.pem. Some authentication plugins will not work.
2021-03-29 18:32:15 73423 [Note] RSA public key file not found: /usr/local/var/mysql//public_key.pem. Some authentication plugins will not work.
2021-03-29 18:32:15 73423 [Note] Server hostname (bind-address): '*'; port: 3306
2021-03-29 18:32:15 73423 [Note] IPv6 is available.
2021-03-29 18:32:15 73423 [Note] - '::' resolves to '::';
2021-03-29 18:32:15 73423 [Note] Server socket created on IP: '::'.
2021-03-29 18:32:15 73423 [ERROR] Fatal error: Can't open and lock privilege tables: Table 'mysql.user' doesn't exist
210329 18:32:16 mysqld_safe mysqld from pid file /usr/local/var/mysql/doishinichirounoMacBook-Pro.local.pid ended
210329 18:32:26 mysqld_safe Logging to '/usr/local/var/mysql/doishinichirounoMacBook-Pro.local.err'.
210329 18:32:26 mysqld_safe Starting mysqld daemon with databases from /usr/local/var/mysql
2021-03-29 18:32:26 0 [Warning] TIMESTAMP with implicit DEFAULT value is deprecated. Please use --explicit_defaults_for_timestamp server option (see documentation for more details).
2021-03-29 18:32:26 0 [Note] --secure-file-priv is set to NULL. Operations related to importing and exporting data are disabled
2021-03-29 18:32:26 0 [Note] /usr/local/opt/mysql@5.6/bin/mysqld (mysqld 5.6.51) starting as process 73504 ...
2021-03-29 18:32:26 73504 [Warning] Setting lower_case_table_names=2 because file system for /usr/local/var/mysql/ is case insensitive
2021-03-29 18:32:26 73504 [Note] Plugin 'FEDERATED' is disabled.
/usr/local/opt/mysql@5.6/bin/mysqld: Table 'mysql.plugin' doesn't exist
2021-03-29 18:32:26 73504 [ERROR] Can't open the mysql.plugin table. Please run mysql_upgrade to create it.
上記エラーを解消してくださる方を募集しています。
何卒よろしくお願い致します!