mysqldatabase-connectionsequelpro

Sequel Pro and MySQL connection failed


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 terminal it works and I can login to mysql but from Sequel Pro it says

enter image description here

Unable to connect to host 127.0.0.1, or the request timed out.

Be sure that the address is correct and that you have the necessary privileges, or try increasing the connection timeout (currently 10 seconds).

MySQL said: Authentication plugin 'caching_sha2_password' cannot be loaded: dlopen(/usr/local/lib/plugin/caching_sha2_password.so, 2): image not found

can't figure out what I am missing


Solution

  • This is because Sequel Pro is not ready yet for a new kind of user login, as the error states: there is no driver.

    mysql + homebrew

    Basically you will have to perform some actions manually, however- your database data won't be deleted like in solution below

    Should work.

    Quick fix (destructive method)

    Quick fix for non-homebrew installs:

    Apple Logo > System Preferences > MySQL > Initialize Database, then type your new password and select 'Use legacy password'

    After restart you should be able to connect. Do it only on fresh installs, because you may lost your db tables otherwise.


    my.cnf

    The my.cnf file is located in /etc/my.cnf on Unix/Linux


    Alternatives

    For those who is still struggling with Sequel Pro problems: Sequel Pro was a great product, but with tons of unresolved issues and last release being dated to 2016 perhaps it's a good idea to look for some alternatives. There is a fork of SequelPro called SequelAce that seems to be pretty stable and up-to-date, it keeps similar functionality, similar look and feel, yet at the same time it is devoid of old Sequel Pro problems