1 Answer
- Newest
- Most votes
- Most comments
1
Hello,
Can you try the below mentioned approaches:
Firstly check if MySQL or MariaDB server is started. Check service mysql status
Specify 127.0.0.1 as the host instead of localhost. That is, mysql -h 127.0.0.1 -u root instead of mysql -h localhost -u root. If you omit the host (mysql -u root), the MySQL client will implicitly use localhost.
For SingleStoreDB Cloud, change the socket value in the /etc/mysql/my.cnf file to the location of your SingleStoreDB Cloud socket file.
This should help resolve the issue.
Relevant content
- asked 2 years ago
- Accepted Answerasked a year ago
- AWS OFFICIALUpdated a year ago
- AWS OFFICIALUpdated 5 months ago
- AWS OFFICIALUpdated a year ago
I tried to check as below but it failed...
mysqladmin -u root -p ping
mysqladmin: connect to server at 'localhost' failed error: 'Can't connect to local server through socket '/opt/bitnami/mariadb/tmp/mysql.sock' (111)' Check that mariadbd is running and that the socket: '/opt/bitnami/mariadb/tmp/mysql.sock' exists!