Skip to content

Cannot connect to mySQL server

0

I have a EC2 Instance -LINUX- running PHP with MySQL. After the uddate done to Docker to 25.0.3 from 20.10.25 y lost access to mySQL server. Unable to connect via PHPmyadmin and my applications are getting Exception: SQLSTATE[HY000] [2002] No such file or directory error.

Need to fix this ASAP.

All help is greatly appreciated

asked a year ago121 views
2 Answers
0

Hello.

Is MySQL also managed by Docker containers?
In that case, you need to check whether the MySQL container is started properly.
Can you confirm that the MySQL container is starting normally using the "docker ps" command?

EXPERT
answered a year ago
0

mysql is not managed by Docker.

Here where mysql is installed: $ which mysql /usr/bin/mysql $ mysql --version mysql Ver 15.1 Distrib 10.5.25-MariaDB, for Linux (x86_64) using EditLine wrapper

When trying to restart it I a getting this error: $ service mysql start Redirecting to /bin/systemctl start mysql.service Failed to start mysql.service: The name org.freedesktop.PolicyKit1 was not provided by any .service files See system logs and 'systemctl status mysql.service' for details.

answered a year ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.