We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hi, got the following error while running mysqldump -u user -p databasename > new.sql
mysqldump -u user -p databasename > new.sql
mysqldump: Got error: 2002: Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2) when trying to connect
Trying to run backup.sh after edited the config, it shows the error as below.
backup.sh
2022-06-02 10:13:42 Backup progress start 2022-06-02 10:13:42 MySQL dump start 2022-06-02 10:13:42 MySQL all databases backup failed
So where is the mysqld.sock? Is this missing file the key to the problem? After systemctl status mysqld, it shows mysqld is active and running.
mysqld.sock
systemctl status mysqld
Thanks.
The text was updated successfully, but these errors were encountered:
if you install LAMP by this script, default is /tmp/mysql.sock
/tmp/mysql.sock
Sorry, something went wrong.
Thanks. After exposing the right location of mysql socket by the following command, I still get the same error. Any ideas?
sudo usermod -d /tmp/ mysql
/var/run/mysqld/mysqld.sock Doesn't look like it was installed by LAMP script. Sorry can not help you, please Google it.
/var/run/mysqld/mysqld.sock
No branches or pull requests
Hi, got the following error while running
mysqldump -u user -p databasename > new.sql
Trying to run
backup.sh
after edited the config, it shows the error as below.So where is the
mysqld.sock
? Is this missing file the key to the problem?After
systemctl status mysqld
, it shows mysqld is active and running.Thanks.
The text was updated successfully, but these errors were encountered: