gpt4 book ai didi

php - MySQL 错误 : Table or view already exists

转载 作者:行者123 更新时间:2023-11-29 07:37:58 24 4
gpt4 key购买 nike

我尝试在 MySQL 中创建表,但出现以下错误:

SQLSTATE[42S01]: Base table or view already exists: 1050 Table 'migrations' already exists (SQL: create table migrations (id int unsigned not null auto_increment primary key, migration varchar(255) not null, batch int not null) default character set utf8 collate utf8_unicode_ci)

我该如何解决这个问题?

最佳答案

尝试

php artisan migrate:fresh 

或者

手动清空数据库并包含迁移表,然后再次尝试迁移。

关于php - MySQL 错误 : Table or view already exists,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/47862612/

24 4 0