更新时间:2021-10-03 06:33:34
在application->config->database.php
中,如下设置prefix
'mysql' => array(
'driver' => 'mysql',
'host' => 'localhost',
'database' => 'foodb',
'username' => 'root',
'password' => '',
'charset' => 'utf8',
'prefix' => 'ula_', <-- this is where you need to set the table prefix
),
设置后,再次migrate:reset
和migrate
我已经做到了,它的作品很完美
After setting this, migrate:reset
and migrate
it again
I have done this way and its works perfect