abhi1693 / yii2-app-advanced-startup-kit

Yii 2 Practical Advanced Application Template (GUI Startup Kit)
Other
31 stars 22 forks source link

Database Exception – yii\db\Exception #3

Closed hdushku closed 9 years ago

hdushku commented 9 years ago

When I run the setup I get these error:

SQLSTATE[42S02]: Base table or view not found: 1146 Table 'dbtest.config' doesn't exist
The SQL being executed was: SELECT name, value FROM `config`
Error Info: Array
(
    [0] => 42S02
    [1] => 1146
    [2] => Table 'dbtest.config' doesn't exist
)
↵
Caused by: PDOException

SQLSTATE[42S02]: Base table or view not found: 1146 Table 'dbtest.config' doesn't exist
abhi1693 commented 9 years ago

I have fixed all the errors related to the installer. Update your project by running composer update and re-run your application. Let me know if you need more help.

epulgaron commented 9 years ago

I've got my project updated but I've got this error SQLSTATE[3D000]: Invalid catalog name: 1046 No database selected The SQL being executed was: SELECT name, value FROM config

Error Info: Array ( [0] => 3D000 [1] => 1046 [2] => No database selected )

↵ Caused by: PDOException SQLSTATE[3D000]: Invalid catalog name: 1046 No database selected

now when i try to put my db name in app/common/common/config/main.php i got this

Database Exception – yii\db\Exception SQLSTATE[HY000] [1044] Access denied for user ''@'localhost' to database 'sigac' ↵ Caused by: PDOException SQLSTATE[HY000] [1044] Access denied for user ''@'localhost' to database 'sigac'

can you help me? I'm very interesting in your extension, thx

abhi1693 commented 9 years ago

Remove the changes you made in the app/common/config/main.php and tell me what happens when you navigate to localhost\your-app\backend?

abhi1693 commented 9 years ago

Closing this issue due to lack of feedback.