Closed dzogchen closed 11 years ago
You need to set a tablePrefix
in your dbConnection http://www.yiiframework.com/doc/api/1.1/CDbConnection#tablePrefix-detail
I did!
Just to be clear, I added 'tablePrefix' => 'tbl_', to the 'db' array in the components array in config/main.php
Which version did you download?
the version linked on the extensions yii site - yii-user-0.3-61-gfc69518
I will grab the zip from github and try that
Unfortunately, same result
Sorry, I had a similar error once, but I can't remember of anything else. Last idea: "You don't overwrite your config with a local file?"
well, I'm running this on MAMP PRO, so config/main.php IS a local file.... Thanks for your help anyhow!
SOLVED: I added 'tablePrefix' => 'tbl_' to the 'db' section of config/console.php and now it works!....
My suggestion would be to add this solution to the instructions, as they only mention adding 'tablePrefix' => 'tbl_', to the main.php and not to console.php
Yes that was it! Now I remember :)
I ran the migration command as per the readme.md and it failed... here is the output Creating migration history table "tbl_migration"...done. Total 2 new migrations to be applied: m110805_153437_installYiiUser m110810_162301_userTimestampFix
Apply the above migrations? (yes|no) [no]:yes *\ applying m110805_153437_installYiiUser type db: mysql
*\ applying m110810_162301_userTimestampFix type db: mysql
*\ failed to apply m110810_162301_userTimestampFix (time: 0.323s)
Migration failed. All later migrations are canceled.
Somehow, I can't imagine that {{users}} {{profiles}} and {{profiles_fields}} are the correct table names...
Any ideas what went wrong??