0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 1 year has passed since last update.

MySQL関連エラー

Last updated at Posted at 2023-08-01

touch /usr/local/var/mysql/[マシン名].local.pidでファイルを作成後、mysql.server startを実行。
するとエラーが出ました。

.rm: /tmp/mysql.sock: Permission denied 2023-08-01T17:12:33.6NZ mysqld_safe Fatal error: Can't remove the socket file: /tmp/mysql.sock. Please remove the file manually and start /usr/local/Cellar/mysql/8.0.33_3/bin/mysqld_safe again; mysqld daemon not started ERROR! The server quit without updating PID file (/usr/local/var/mysql/joshu.local.pid).

エラー分通りに以下の実行しました。

sudo rm /tmp/mysql.sock
/usr/local/Cellar/mysql/8.0.33_3/bin/mysqld_safe

上記実行後は、control + z で停止できます。

そして、ログインすると問題なく動きました。

mysql -u root
0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?