我知道这个标题的问题之前已经得到了解答,但请继续阅读.在发布之前,我已经仔细阅读了有关此错误的所有其他问题/答案.
我收到以下查询的上述错误:
CREATE TABLE IF NOT EXISTS `pds_core_menu_items` (
`menu_id` varchar(32) NOT NULL,
`parent_menu_id` int(32) unsigned DEFAULT NULL,
`menu_name` varchar(255) DEFAULT NULL,
`menu_link` varchar(255) DEFAULT NULL,
`plugin` varchar(255) DEFAULT NULL,
`menu_type` int(1) DEFAULT NULL,
`extend` varchar(255) DEFAULT NULL,
`new_window` int(1) DEFAULT NULL,
`rank` int(100) DEFAULT NULL,
`hide` int(1) DEFAULT NULL,
`template_id` int(32) unsigned DEFAULT NULL,
`alias` varchar(255) DEFAULT NULL,
`layout` varchar(255) DEFAULT NULL,
PRIMARY KEY (`menu_id`),
KEY `index` (`parent_menu_id`,`menu_link`,`plugin`,`alias`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
Run Code Online (Sandbox Code Playgroud)
有谁知道为什么以及如何解决它?问题是 - 这个查询在我的本地计算机上完美运行,并且在我以前的主机上运行良好.Btw.it来自一个成熟的项目 - phpdevshell - 所以我猜这些家伙知道他们在做什么,虽然你从来不知道. …
我复制了一个带有流浪盒的项目,它安装了Debian,Nginx,PhpMyAdmin,..随着新项目,Laravel php artisan migrate不再工作,我得到错误:
[Illuminate\Database\QueryException]
SQLSTATE[HY000]: General error: 1709 Index column size too large. The maximum column size is 767 bytes. (SQL: alter table `courses` add unique `courses_name_unique`(`na
me`))
Run Code Online (Sandbox Code Playgroud)
当我创建工作项目数据库的转储(结构+数据)并将其导入数据库时给出迁移时的错误,然后一切正常,它创建所有表和数据导入..
如何修复大小以便我可以运行migrate方法?