问题是在迁移时,首先创建了我的子表,它找不到父表,无法分配父表主键的外键,我得到的错误如下。
在Runner。smart-helmet-backend/smarthelmet/node_modules/knex/lib/runner.js:213:19)代码:‘ER_FK_ the _ open _PARENT’,errno: 1824</em
我一直在laravel问题/论坛上搜索如何使用现有表将更改从increments()迁移到bigIncrements()。错误:SQLSTATE[HY000]: General error: 1833 Cannot change column 'id': used in a foreign key constraint '然后我尝试使用Schema::disableForeignKeyConstraints()禁用约束
错
我在亚马逊的EC2上安装了Laravel,在亚马逊的RDS上有一个单独的数据库,我无法通过更改Laravel的database.php文件中的mysql详细信息来连接到RDS。我收到以下错误:
SQLSTATE[HY000] [2003] Can't connect to MySQL server on '******.***