Cannot connect to local SQL server through socket, using PopSQL in MacOS - mysql

I am new to SQL.
I can log into the terminal and create databases.
When I opened PopSQL and tried to connect to localhost, an error message appeared:
Can't connect to local MySQL server through socket '/run/mysqld/mysqld.sock' (2)
I have tried many solutions on Internet but they did not work.

Related

MySQL accessible from my machine but not from another machine on the same LAN

I have MySQL running on an Apple OS X 10.14 machine. I use MailSteward Pro to access it, and it works fine locally from that machine. From another machine on the same LAN, which can ping the SQL server machine just fine, I get this error:
Failed to connect to server: Error: Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2)
I am not specifying a different .sock file on the connection on the MySQL server machine. What am I doing wrong - how to debug this?

AIrflow MySql connection Issues

I have MySQL and airflow instance both running on docker.
I am trying to test connection using query from "data profiling > adhoc query" options, but I am getting the below error. I have done the connections using "admin > connections"
(2006, "Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)")
connection
query
I have connected the above using "localhost" as host i have exposed the mysql port to the hostmachine.
Also i have tried connecting using the IP and port. But it shows the below error.
(2006, "Can't connect to MySQL server on '127.0.0.1' (111)")
Although I can connect postgres instance running in another container without any problems.
I have a workaround to connect to mysql using jdbc mysql drivers but i am curious to see what is this problem.

Connect to SQL server with custom port while executing installer

I have InstallShield 2013 basic MSI project. During installer execution I need to connect to MySQL Server which is running on 3310 port. Default port is 3306 and installation runs successfully, but when I try to connect to server with different port - installer cannot connect to MySQL server.
I tried to set custom port like described here
ServerName,3310
But it didn't work for me. I also tried to connect by IP of server and port delimited with ":" but it also had no effect.
When I try to connect to server by typing hostname I get this error: "Can't connect to MySQL server on 'hostname'"
When I try to connect to MySQL server by typing hostname,port I get the following error: "Unknown MySQL server host 'hostname,port'"
Can anyone tell me what I am doing wrong or what I need to do to connect to MySQL server with custom port?

Connection to database failed! Error: Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2)

Hello i been running into this error after moving my website to a new host
[DonationSystem] Connection to database failed! Error: Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2)
I am running on the same version of linux ub 12.04 the server one.
i have a few databases running that are working such as my phpbb one.
i have tried link them edit configs and everything else the internet has told me even removed mysql and reinstalled it so any ideas?
oh and the database is local and im using localhost and root is the user

phpmyadmin and mysql socket error

once i try to connect to mysql on phpmyadmin in ubuntu i got this error
2002 - The server is not responding (or the local MySQL server's socket is not correctly configured)
but with mysql query browser i connect with out any error and it works
why phpmyadmin does not connect?
The command line client uses a unix domain socket while PHPmsyqladmin uses a network socket. You'll need to enable the network socket in the mysql config, most likely.
EDIT:
You can read about some of the troubleshooting (and windows) side of this: http://dev.mysql.com/doc/refman/5.1/en/can-not-connect-to-server.html
And here is how to set up mysql to use a network config:
http://www.howtogeek.com/howto/mysql/switch-mysql-to-listen-on-tcp/