M
M
Maxim2015-01-31 01:08:36
Yii
Maxim, 2015-01-31 01:08:36

How to make friends yii2 and sqlsrv?

The situation is this: there is a database in microsoft azure, you need to connect an application on yii2 to it.
For the initial launch, I installed yii2 advanced on the local computer (under denwer), configured the config

'db' => [
            'class' => 'yii\db\Connection',
            'dsn' => 'sqlsrv:Server=host;Database=dbname',
            'username' => 'login',
            'password' => 'pwd',
            'charset' => 'utf8',
        ],

The site has started, I try to go to the admin area (according to the standard User model) - it doesn’t let me, it gives
Invalid Configuration – yii\base\InvalidConfigException

The table does not exist: {{%user}}

Tried the solution like here - didn't help.
Never worked with ms sql server before, what could be the problem?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Anatoly, 2015-02-03
Ivashina @tiv

www.bsourcecode.com/yiiframework2/yii2-0-database-... ?
try running with debug level logs

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question