Sequel Pro and MySQL connection failed

后端 未结 7 1511
青春惊慌失措
青春惊慌失措 2020-12-04 06:02

I just installed mysql on mac from Homebrew

brew install mysql

mysql -V

mysql  Ver 8.0.11 for osx10.13 on x86_64 (Homebrew)

from termina

7条回答
  •  醉酒成梦
    2020-12-04 06:43

    1. Assuming you don't have a mysql configuration, echo the following to ~/.my.conf
    [mysqld]
    default-authentication-plugin=mysql_native_password
    
    1. Sign into mysql with mysql -u root -p
    2. Set the root user password with ALTER USER 'root'@'localhost' IDENTIFIED WITH mysql_native_password BY '[PASSWORD]'; where [PASSWORD] is a password of your choosing.
    3. Restart mysql with e.g. brew services restart mysql

提交回复
热议问题