jedt/spark_plug — Issue #45: Missing table?!
Author: FlyinPanda
Created: 2011-10-24 17:50:53+00:00
State: open

I have double checked that the tables and the table : 'user_groups' does exist in the database, along with default values in it. Now, my database connection is done with the user 'root' and no password. As soon as I include spark plug in the picture, the following error starts coming up:

_connect() [function.mysql-connect]: Access denied for user 'user'@'localhost' (using password: YES) [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]

Notice the error message here is w.r.t. 'user'@'localhost' not 'root'@'localhost', root is what I have configured in my database.php under config.

Missing Database Table
Error: Database table user_groups for model UserGroup was not found.

Notice: If you want to customize this error message, create app\views\errors\missing_table.ctp