Attempting to install beta8 using composer create-project flarum/flarum . --stability=beta
No issues installing beta 7 prior, but having issues with beta 8. Likely due to 10.2.19-MariaDB
Any tips/ideas/solutions?
VPS
Apache 2.4.37
PHP 7.2.12
MySQL 10.2.19-MariaDB
Error during Flarum install:
Something went wrong: SQLSTATE[HY000]: General error: 1005 Can't create table stest_flarum
.#sql-22fa_2236
(errno: 150 "Foreign key constraint is incorrectly formed") (SQL: alter table posts
add constraint posts_user_id_foreign
foreign key (user_id
) references users
(id
) on delete set null)
Running SHOW ENGINE INNODB STATUS
LATEST FOREIGN KEY ERROR
2018-11-28 21:33:26 0x7f5ad4b98700 Error in foreign key constraint of table stest_flarum
.posts
:
Alter table stest_flarum
.posts
with foreign key constraint failed. Referenced table stest_flarum
.users
not found in the data dictionary near ' foreign key (user_id
) references users
(id
) on delete set null'.
Resolved: Check mysql default engine. If MyISAM, change default to innodb.
Default engine was MyISAM, Changed my.cnf --> default-storage-engine=innodb