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
Description:
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!

https://drive.google.com/file/d/1ADPx3Cr5aUeagjj84fpKIRQnDN_Izatu/view?usp=sharing

Hi @picknbook.in,

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
Error:
Exitcode:

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

Hi @picknbook.in,

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?

https://docs.bitnami.com/aws/how-to/modify-ebs-volume/

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

https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/recognize-expanded-volume-linux.html

But mine is google cloud platform

Hi @picknbook.in,

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

https://docs.bitnami.com/google/faq/administration/resize-server-disk/

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

Hi @picknbook.in,

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

https://cloud.google.com/compute/docs/disks/working-with-persistent-disks

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.