Warning: mysql_connect(): No such file or directory

On January 27, 2015, in PHP, by Anuj Gakhar

I’ve been trying to setup a local PHP/Mysql app today and came across this issue with the database connection. Warning: mysql_connect(): No such file or directory The connection parameters I’ve been using were as follows :- Turns out, the fix was quite simple. Change the above code like below and problem solved! The reason is […]

 

Subscribe to Blog via Email

Enter your email address to subscribe to this blog and receive notifications of new posts by email.

Join 292 other subscribers

© 2011 Anuj Gakhar