CDbCommand failed to execute the SQL statement: SQLSTATE[42S01]: Base table or view already exists: 1050 Table ‘YiiSession’ already exists. The SQL statement executed was:
CREATE TABLE YiiSession
id CHAR(32) PRIMARY KEY,
who can help me ,
The error is obvious read what the error says its saying the table already exists delete
I want to know ,why appear this error?
Hello, are you using an SQLite DB? if so, it may have to do with permissions and ownership. Check that the web user has write access to both the directory and the database file.
Look in /config/main.php
Under the components->session array look for this: ‘autoCreateSessionTable’ => true,
Try setting it to false and see if that works out.
It shouldn’t really matter because I thought the table would only be created if it didn’t exist, but maybe things have changed?
Just found this: