Logo
  • Home
  • About
  • Services
  • Blogs
  • Career
  • Contact
Logo

The UK's #1 Software Development Company. PodTech IO builds custom software solutions for businesses. Call today for a free consultation

  • Address

    4th Floor, 4 Tabernacle Street London EC2A 4LU
  • Email

    info@podtech.com
  • Contact

    +44 (0) 20 8720 6583

2002 Cannot log in to the MySQL server – MAC

  • Home
  • 2002 Cannot log in to the MySQL server – MAC
  • By podtech
  • In PHP SQL

2002 Cannot log in to the MySQL server – MAC

To fix

In /etc/php.ini, replaced the three occurences of /var/mysql/mysql.sock with /tmp/mysql.sock

prompt% sudo chmod u+w php.ini   <- had to give myself write permission to that file..

you may need to become root user to actually edit the file.. depends who owns php.ini

Now edit it..  i vi

find:  pdo_mysql.default_socket=/var/mysql/mysql.sock
change to: pdo_mysql.default_socket=/tmp/mysql.sock

Find: mysql.default_socket = /var/mysql/mysql.sock
change to: mysql.default_socket = /tmp/mysql.sock

Find: mysqli.default_socket = /var/mysql/mysql.sock
change to: mysqli.default_socket = /tmp/mysql.sock

 

restart apache: sudo apachectl restart

2002 Cannot logMACMYSQLMySQL server
Data from a Pivot
Where is the Hash key on the MAC?

Recent Posts

  • What is Software Piracy?
  • Microsoft and SITA Launch New Innovation Center in South Africa
  • Ericsson, Qualcomm and Thales to Launch 5G into Space
  • Schneider Electric Launches Free Data Center Professional Education Platform
  • UK and South Korea Reach Data Sharing Agreement

PodTech IO

The UK's #1 Software Development Company. PodTech IO builds custom software solutions for businesses. Call today for a free consultation

Company

  • About
  • Services
  • Contact
  • Blogs
  • Career

Terms

  • Terms & Conditions
  • Privacy Policy

Contact Us

  • ADDRESS

    Headquarter: Tabernacle Street London India: Vi john Tower, Gurgaon, Haryana
  • EMAIL

    info@podtech.com
  • CONTACT

    +44 (0) 20 8720 6583

Copyright ©2022 PodTech IO. All Rights Reserved

Logo