Menu
Newbedev LogoNEWBEDEV Python Javascript Linux Cheat sheet
Newbedev LogoNEWBEDEV
  • Python 1
  • Javascript
  • Linux
  • Cheat sheet
  • Contact

Centos 6; phpMyAdmin 'Cannot log in to the MySQL server' after moving mysql.sock

Unless you use the built-in default location PHP also needs to be explicitly configured with the location of the MySQL socket file in the php.ini file or in the connection string...

pdo_mysql.default_socket= /home/mysql/mysql.sock

or depending on your choice of API's

mysqli.default_socket= /home/mysql/mysql.sock

Tags:

Mysql

Unix

Phpmyadmin

Centos6

Socket

Related

Network printer exploited (read: hacked) to print antisemitic documents. How to fix? Automount USB drives with systemd Monitor DELL hardware on VMware ESXi 5.5 server connect to 3rd party VPN server but don't use it as the default route? Any way to enable Amazon S3 Versioning for existing objects? Do I need a separate SSL certificate for a DNS redirect? Published SRV records pointing to CNAME alias in violation of RFC 2782? Static Public IP Address on Amazon EC2 OpenVPN issue - TLS key negotiation failed to occur within 60 seconds How to move disk space from centos-home to centos-root Use HTTP/2.0 between nginx reverse-proxy and backend webserver Why don't NS records contain IP addresses?

Recent Posts

Pandas how to find column contains a certain value Recommended way to install multiple Python versions on Ubuntu 20.04 Build super fast web scraper with Python x100 than BeautifulSoup How to convert a SQL query result to a Pandas DataFrame in Python How to write a Pandas DataFrame to a .csv file in Python
© 2021 newbedevPrivacy Policy