Mobile app version of vmapp.org
Login or Join
Holmes151

: Error configuring phpmyadmin After installing the configuration began, however I kept getting this message saying: An error occurred while installing the database:

@Holmes151

Posted in: #Phpmyadmin

After installing the configuration began, however I kept getting this message saying:

An error occurred while installing the database:

│ ERROR 2002 (HY000): Can't connect to local MySQL server through socket
│ '/var/run/mysqld/mysqld.sock' (2)


I am new to this not sure what is blocking the mysql socket

10.02% popularity Vote Up Vote Down


Login to follow query

More posts by @Holmes151

2 Comments

Sorted by latest first Latest Oldest Best

 

@Speyer207

Sounds like a typical permission problem, you need to ensure that your permissions can correctly read and write the database sock file.


Source

If your file my.cnf (usually in the /etc/mysql/ folder) is correctly
configured with:

socket=/var/lib/mysql/mysql.sock


You can check if mysql is running with the following command:

mysqladmin -u root -p status


Try changing your permission to mysql folder. If you are working locally, you can try:

sudo chmod -R 755 /var/lib/mysql/



If the above doesn't fix the problem then its likely something else, Visit Can't connect to local MySQL server through socket '/var/mysql/mysql.sock' (38) on Stack Overflow for more answers.

10% popularity Vote Up Vote Down


 

@Bryan171

That's an error in configuration. You need to put localhost or your IP in it.

Follow this steps:


Open /etc/mysql/my.cnf.
Find bind-address, and change its value to the database server host machine's IP address. localhost or 127.0.0.1
Save and close the file.
Restart apache

10% popularity Vote Up Vote Down


Back to top | Use Dark Theme