Sunday, February 27, 2011

Re: error with database

On Feb 27, 2011, at 13:54, a17s wrote:

> I am having an issue with a cakephp site. I keep having an error in
> connecting to mysql database though my database config seems correct.
> Any suggetions.
> Find below error messages
>
> Warning (2): mysql_connect() [function.mysql-connect]: Can't connect
> to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)
> [CORE/cake/libs/model/datasources/dbo/dbo_mysql.php, line 540]
> Code | Context

Is there in fact a MySQL socket at /var/run/mysqld/mysqld.sock?

Can you connect to the MySQL server via, say, the command line MySQL client?

--
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

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate