Connect with psql and mysql
The Info tab of each instance shows the exact psql or mysql command. They have this shape.
How do I use psql?
Section titled “How do I use psql?”psql -h 127.0.0.1 -p 5432 -U postgres postgresCreate a database for your app:
createdb -h 127.0.0.1 -p 5432 -U postgres myappHow do I use mysql?
Section titled “How do I use mysql?”mysql -h 127.0.0.1 -P 3306 -u rootCreate a database:
mysql -h 127.0.0.1 -P 3306 -u root -e "CREATE DATABASE myapp"Replace the port with your instance’s port. Use -h 127.0.0.1: there is no Unix socket, and localhost may make mysql look for one.
Can I copy the string from the app?
Section titled “Can I copy the string from the app?”Yes. Right-click the instance in the sidebar and choose Copy connection string.
If the connection is refused, check the instance is running and the port matches, see ports.
SQLEye is developed and maintained by CodeROG. This page is also available as Markdown.