cms icon indicating copy to clipboard operation
cms copied to clipboard

install fails with sql error

Open michapixel opened this issue 5 years ago • 2 comments

windows 10 apache 2.4.4.6 mysql 5.7.18 php 7.4.10

install seems to be fine until migrations are run:

SQLSTATE[42S01]: Base table or view already exists: 1050 Table 'roles' already exists (SQL: create table roles (idint unsigned not null auto_increment primary key,namevarchar(255) null,slugvarchar(255) null,descriptionvarchar(255) null,levelint not null default '1',deleted_attimestamp null,created_attimestamp null,updated_at` timestamp null) default character set utf8mb4 collate 'utf8mb4_unicode_ci')

and exit.

michapixel avatar Feb 04 '21 11:02 michapixel

oh btw i used to install it like described on the corresponding doc-page:

composer create-project LavaLite/cms --prefer-dist website cd website php artisan lavalite:install (key is generated btw)

i ran php artisan serve just to see if anything else is missing, but it fails and i guess a superuser never has been set since the installer didn't run through.

michapixel avatar Feb 04 '21 11:02 michapixel

you can run php artisan migrate::fresh

mepsd avatar Apr 08 '21 06:04 mepsd