I'm building a Laravel project and I've been trying for the past week to connect to MYSQL through Sequel Pro. I've tried tens of different combinations of host, username and password, to no avail.
I have tried using localhost
instead of 127.0.0.1
this also doesn't work.
Here are the details I'm trying to connect in Sequel Pro:
I'm getting this error:
MySQL said: Authentication plugin 'caching_sha2_password' cannot be loaded: dlopen(/usr/local/lib/plugin/caching_sha2_password.so, 2): image not found
I have checked that the port is being listened to, by running: netstat -ap tcp | grep -i "listen"
which returned:
I have also checked that MYSQL is running in the Activity Monitor and mysqld
process is running.
config/database.php
'mysql' => [
'driver' => 'mysql',
'host' => env('DB_HOST', '127.0.0.1'),
'port' => env('DB_PORT', '3306'),
'database' => env('DB_DATABASE', 'homestead'),
'username' => env('DB_USERNAME', 'homestead'),
'password' => env('DB_PASSWORD', 'secret'),
'unix_socket' => env('DB_SOCKET', ''),
'charset' => 'utf8mb4',
'collation' => 'utf8mb4_unicode_ci',
'prefix' => '',
'strict' => true,
'engine' => null,
],
.env
DB_CONNECTION=mysql
DB_HOST=127.0.0.1
DB_PORT=3306
DB_DATABASE=homestead
DB_USERNAME=homestead
DB_PASSWORD=secret
So my question is: what am I doing wrong and why can't I connect to the database?
Thank you for any help.