LoginSignup
0
0

More than 3 years have passed since last update.

Docker mysql8 へ接続するときにUser権限を変更する方法

Posted at

最近、mysqlはmysql8以上で使っているのですが、ローカル環境で、dockerから起動すると、nodeサーバーから接続できないことがあって、mysqlのuser権限を変更しないと接続できないことに気づきましたので、忘れないのようにメモしておきます。

ALTER USER 'username'@'%' IDENTIFIED WITH mysql_native_password BY 'userpassword'
FLUSH PRIVILEGES;
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