wizard icon indicating copy to clipboard operation
wizard copied to clipboard

直接按照方法一的命令运行 连接后500

Open xiebaiyuan opened this issue 3 years ago • 2 comments

直接按照方法一的命令运行 连接后500

xiebaiyuan avatar Dec 28 '21 14:12 xiebaiyuan

请先同步数据库

harryue avatar Feb 07 '22 08:02 harryue

MySQL 数据配置

create database wizard default character set utf8mb4 collate utf8mb4_bin ;
create user 'wizard'@'%' identified by 'wizard' ;
grant all privileges on wizard.* to 'wizard'@'%' ;
flush privileges ;

Docker 安装 Wizard

docker run -d --name wizard \
    -e DB_HOST=192.168.199.60 \
    -e DB_PORT=3306  \
    -e DB_DATABASE=wizard  \
    -e DB_USERNAME=wizard  \
    -e DB_PASSWORD=wizard  \
    -p 8080:80 \
    -v /Users/mylxsw/Downloads:/webroot/storage/app/public   \
    mylxsw/wizard

初始化数据库

docker exec -it wizard /bin/bash
php artisan migrate:install
php artisan migrate

访问网站

登录网站,注册新用户

http://192.168.199.60:8080

登录数据库修改管理员权限

update wz_users set role = 2 where email = '注册时用的邮箱';

文件不能上传

chmod 777 -R /webroot

just have fun !

moli2022 avatar Mar 10 '22 11:03 moli2022