If youāre having trouble with this, it may be as simple as updating Sequel Pro. I was having connection issues that were solved simply by downloading the latest version.
Itās worthing noting that if you have a VM started and then start a new another VM then the SSH port will be different so your saved Sequel Pro settings will not work. Check the vagrant ssh settings using āvagrant ssh-configā from your project root and make sure the port number matches your saved connection settings.
Thanks for all of the replies and info in this thread. I went ahead and added a doc on the site that covers how to connect to your databases (both local and remote):
Thanks for the documentation. Wrote about accessing the database in Trellis locally with Sequel Pro here myself a while ago. Shouldnāt the documentation also mention port 2222 for local access?
Hey guys, please, if I set sshd_permit_root_login: false how can I connect to the remote and local database? Iām trying here but no success whatsoever.
Iāve figure out how to connect into the mysql using the ssh admin user and the vault_users password located into the group_vars/production/vault.yml
But for this I needed to use the sudo command⦠any way to configure this into the MySQL Workbench or Sequel Pro?
admin@vps0695:~$ mysql -u root -p
Enter password:
ERROR 1698 (28000): Access denied for user 'root'@'localhost'
admin@vps0695:~$ sudo mysql -u root -p
[sudo] password for admin:
Enter password:
Welcome to the MariaDB monitor. Commands end with ; or \g.
Your MariaDB connection id is 85
Server version: 10.0.27-MariaDB-0ubuntu0.16.04.1 Ubuntu 16.04
Copyright (c) 2000, 2016, Oracle, MariaDB Corporation Ab and others.
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
MariaDB [(none)]>
with sshd_permit_root_login set to false, i can ssh into the remote server with the admin user, but cannot connect to mysql ā Access denied for user 'admin'@'localhost'.
if i allow root login, i can ssh as root and connect to mysql just fine.
however in Sequel Pro, i am unable to connect in either case (using username root and password value of vault_mysql_root_password in group_vars/production/vault.yml. i get the same error for either admin or root as username (ssh connects fine, access denied for mysql).
Site is up an running on the remote server, no issues when deploying or provisioning to remote server.
Unfortunately I did not figure this out yet, for now I reenabled sshd_permit_root_login and Iām working with this. Soon I will try again, maybe SSH into it and creating a single user only for connecting to MariaDB or changing user DB permissions
replied on that thread as well, but iām not having any issues locally (lmk if i read your solution wrong which sounded to me only relevant to the local env)
Iām trying to setup sequel pro for local vagrant connection. Iāve followed these configurations very carefully and tried many other things. Looks like the ssh connection is working but then the MySQL connection is denied.
Hereās the message I get:
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: Access denied for user ārootā@ālocalhostā
I got this to work with these settings. It this legit? Maybe you want to add it into the documentation. Seems to work. (basically connecting to mysql as a user and not as root)