Mysql Error – SQLSTATE[HY000]  No such file or directory
To solve this, you need to open up your php.ini file (mine was in /etc/). Look for the following line:
If that line exists for you, try changing it to:
Restart apache after saving, and that’s all I had to do.
See the book OpenCart 1.4 Template Design Cookbook.
See the book Joomla Mobile Development Beginners Guide