Mysqladmin: connect to server at 'localhost' failed error: 'Can't connect to local MySQL server through socket '/tmp/mys

Keywords: MySQL - Virtual Machines - Technical issue - Permissions
mysqladmin: connect to server at ‘localhost’ failed
error: ‘Can’t connect to local MySQL server through socket ‘/tmp/mysql.sock’ (13)’
Check that mysqld is running and that the socket: ‘/tmp/mysql.sock’ exists!


Thanks for using Bitnami. The bnsupport tool is having issues getting your system information. Can you check your system is not running out of free memory?

Display amount of free and used memory in the system
Running: free -m
In: /opt/bitnami

Please run the next commands and share the output with us

free -m
df -h

total used free shared buff/cache available
Mem: 584 195 216 6 171 277
Swap: 0 0 0

Filesystem Size Used Avail Use% Mounted on
udev 283M 0 283M 0% /dev
tmpfs 59M 1.8M 57M 4% /run
/dev/sda1 9.7G 9.2G 19M 100% /
tmpfs 293M 0 293M 0% /dev/shm
tmpfs 5.0M 0 5.0M 0% /run/lock
tmpfs 293M 0 293M 0% /sys/fs/cgroup
/dev/sda15 124M 7.9M 116M 7% /boot/efi
tmpfs 59M 0 59M 0% /run/user/1003


Thanks for the information. Your server run out of free disk space and can’t start any new process. Can you follow the next guide to increase the disk space?

Sometimes it is also needed to run some additionals command on your instance for changes to take effect. Please find below the official guide on this

But mine is google cloud platform


Thanks for the info. For Google you can follow the next guide

Hi, we followed the instructions and increased the disc size, but in our bitnami virtual machines page it is still showing the old configuration. And our application still not able to connect to the mysql. Kindly help us


According to the Google Cloud documentation, it is possible that you need to run some additional commands. You can find the full tutorial in the link below

Once you have done those steps, the application should start working (an instance restart may be required). If you continue finding issues, please run the bnsupport tool again and share the new code with us.

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.