Whenever a site is in production you should turn debug down to 0, but you should also deal with the above issue. It's throwing a database connection error for good reason - I would say your server's MySQL service is not configured and you;re going to need that at some point.
- http://stackoverflow.com/questions/366550/mysql-problem-when-baking-with-cakephp - http://cakephp.1045679.n5.nabble.com/error-with-database-td3402481.html HTH, Paul On Sep 22, 2:53 am, Daniel Luiz Pakuschewski <[email protected]> wrote: > At core.php, change the value of debug to 0 > > On Sep 21, 7:51 pm, tubiz <[email protected]> wrote: > > > > > > > > > Please how do i disable cakephp production error from showing on a > > live site. I am getting this error > > > Warning (2): mysql_connect() [http://php.net/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 561] > > > Warning (2): mysql_query() expects parameter 2 to be resource, boolean > > given [CORE/cake/libs/model/datasources/dbo/dbo_mysql.php, line 613] > > > And wouldnt want it to be shown to visitors -- 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 [email protected] For more options, visit this group at http://groups.google.com/group/cake-php
