Somebody HELP me..
Could not connect to database: Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2)
I was searching everywhere but couldn't find the solution for this error.
Apache + PHP is working fine, MySQL is running (I checket by 'ps -A' & 'mysqladmin') however there is still this shit on my screen..
Could not connect to database: Can't connect to local MySQL
- zoneminder
- Site Admin
- Posts: 5215
- Joined: Wed Jul 09, 2003 2:07 pm
- Location: Bristol, UK
- Contact:
The problem is that your mysql installation and the php-mysql used by apache disagree about where the socket file is. You need to change one or the other so that they agree, or symlink the sock file so it appears in both locations.
If you google for your error message then you will many pages that explain this in more detail and which will probably be more helpful than here as it's not a ZM issue per se.
Phil
If you google for your error message then you will many pages that explain this in more detail and which will probably be more helpful than here as it's not a ZM issue per se.
Phil