Wednesday, March 2, 2011

Re: error with database

On Mar 1, 2011, at 22:15, Elvis Nguyen wrote:

> sudo mkdir /var/run/mysqld
> cd /var/run/mysqld
> sudo ln -s /opt/lampp/var/mysql/mysql.sock mysqld.sock

Creating a symlink to the socket is a poor workaround. Instead, either tell your mysql server to create the socket where php is expecting it (edit the my.cnf) and then restart mysqld, or change php so it looks for the socket where it already is (edit the php.ini) and then restart your web server.

--
Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org
Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions.


To unsubscribe from this group, send email to
cake-php+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php

No comments: