Connecting sequel pro to docker mysql - mysql

I have followed a guid on how to install mysql to docker here.
On running the docker ps I get:
CONTAINER ID IMAGE COMMAND CREATED
3e477bb5aaf9. mcr.microsoft.com/mssql/server:2019-latest "/opt/mssql/bin/perm…" 53 seconds ago
STATUS PORTS NAMES
Up 52 seconds 0.0.0.0:1433->1433/tcp sql_server
I have tried to connect to it from sequel pro like this:
But, that didn't work. I got the connection error message:
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: Can't connect to MySQL server on '127.0.0.1' (4)
I wonder how can I get connected with Sequel Pro to mysql server on docker?

You've messed up between MySQL and MSSQL. These two are completely different products with incompatible protocols. sequelpro is the tool to connect to MySQL server, while you are running MSSQL. No magic, it can't connect.

Related

Can't connect mysql workbench to mysql even though I can connect normally through the terminal

I recently installed mysql and mysql workbench on my manjaro machine. As for mysql itself, it works perfectly. I can start the service, connect using terminal and do my usual work without any trouble.
The problem is that mysql workbench can't, for the life of me, connect to mysql. Always returning the same your connection attempt failed for user 'root' to the mysql server at 127.0.0.1:3306: SSL connection error: SSL is required but the server doesn't support it error.
Even when I try the Rescan servers option on mysql workbench it returns No servers were found.

MySQL said: Can't connect to MySQL server on '127.0.0.1' (4)

the above problem has few solutions here but I couldn't get any of them working so asking.
I have installed mamp and also sequel pro. I am trying to connect using sequel pro but I am getting this error. The whole error is
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: Can't connect to MySQL server on '127.0.0.1' (4)
This is the first time I am trying to connect via standard connection.
I tried socket connection it works but I cannot connect the database with my nodejs application. Thanks
I had same experience using Sequel Pro.
Go to Preferences (Sequel Pro) => Network and increase the timeout seconds to maybe 30.
That solved my issue.

Can't connect to database (10061)

I have a Raspberry Pi (first model) I use as a server. I followed a tutorial and installed Apache2, MySQL, Phpmyadmin etc.
I have also set up a ddns for my home network to be able to connect to it wherever I am, and of course forwarded the necessary ports.
At first everything worked wonders.
I could connect to the database using phpmyadmin by navigating to adress/phpmyadminfrom any network.
I could also use HeidiSQL to connect to the database, again from any network.
The MySQL version I had at this time was v5.5. I wanted a feature available on v5.6 but this version was not available on my RPi (ARMv61). Instead it seemed like MariaDB should do the trick. So I updated to MariaDB using the command:
sudo aptitude install mariadb-server
Now I am not able to connect through HeidiSQL anymore, Phpmyadmin still works though from any network just like previously. Trying to connect with HeidiSQL I get the output (no matter what username/password i try):
Can't connect to MySQL server on 'adress' (10061)'
mysql -V gives output:
mysql Ver 15.1 Distrib 10.0.27-MariaDB, for debian-linux-gnueabihf (armv7l) using readline 5.2
My RPi info is
Linux redface 4.4.26+ #915 Thu Oct 20 17:02:14 BST 2016 armv6l GNU/Linux
The user privileges are available in the image below
How can I connect to the database again using HeidiSQL? Have I missed something with the user privileges?
With phpmyadmin I use the username root
This particular error is not about permissions.
The code (10061) is WSAECONNREFUSED -- a Windows socket error code for Connection refused, not to be confused with "access denied."
Connection refused typically means no service is listening on the target IP address and port. MariaDB is not listening on 0.0.0.0:3306.
mysql -V only tells you the installed client version -- it doesn't tell you anything about the MariaDB server.
Access to phpMyAdmin doesn't tell you anything, either, because with it, you're not talking to the database server remotely -- you're talking to your web server remotely, and your web server is running code that talks to the database locally from within the same machine, and often uses a different mechanism of server access that is not TCP/IP.
Check the config file for a commented-out bind_address=0.0.0.0 or similar.
https://mariadb.com/kb/en/mariadb/configuring-mariadb-for-remote-client-access/

MySQL Workbench: Unable to Connect to Table

I am working on a MySQL database having around 12 tables and it is on remote server. The connection is established via SSH. I have setup the client with MySQL Workbench and SqlYog. The connections are setup properly and database operations are getting performed well, except for one table. Whenever I am trying to access that table in workbench by directly clicking on the icon or by writing query, it is saying-
Error Code: 2013 Lost connection to MySQL server at
'waiting for initial communication packet', system error: 10060
But the same table can be accessed from SqlYog. This is something become really messy. How can this problem be sort out?
Info:
MySQL v5.6
MySQL Workbench v6.3.4
If you are working on MAC/Linux then
check if MYSQL is UP by using following
ps ax | grep sql
if it is down, try to boot is manually, using following if its linux
service mysql restart
if its mac and you have macport installed, use following
sudo port load mysql56-server

openshift scaled app with port forward - Unable to access mysql on localhost

openshift scaled app with port forward - Unable to access mysql on localhost.
I have a simple php scaled app, I was able to setup the port forwarding for myapp. I can see that the 127.0.0.1:37731 is pointing to the openshift mysql gear.
But when I try to access mysql on command line or using mysql workbench, I am getting a
"Connected to MySQL at 127.0.0.1:37731 with user adminXXXXX", connection parameters are incorrect error.
I am ubuntu. "adminXXXXX:#127.0.0.1:37731:" is the connection string when I copy it from the workbench.
Try specifying the host separately.
E.g. after port forwarding, I entered
mysql --host=127.0.0.1:40793
and got
ERROR 2005 (HY000): Unknown MySQL server host '127.0.0.1:40793'
but this worked:
mysql --host=127.0.0.1 --port=40793