Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

安装问题汇总(个人) #9

Open
HiAllon opened this issue Apr 6, 2024 · 0 comments
Open

安装问题汇总(个人) #9

HiAllon opened this issue Apr 6, 2024 · 0 comments

Comments

@HiAllon
Copy link

HiAllon commented Apr 6, 2024

个人学习记录(望勿删)

环境:
PHPStudy_Pro
Nginx 1.15.11
PHP 7.3.4 nts
MySQL 5.7.26

详解安装步骤:

  1. 下载安装包 并解压至根目录
  2. 执行 composer install
  3. .env.example重命名为.env并修改相关数据库参数(可参考Learnku文献)
  4. 执行php artisan migrate
  5. 执行php artisan db:seed --class=InitSeeder

遇见问题:

  1. 执行php artisan migrate报错
    1
    问题: 未新建数据库discover
    解决: 新建数据库discover

  2. 执行php artisan migrate报错
    2
    问题: 默认数据库引擎
    解决: 将默认数据库引擎更改为 InnoDB

  3. 执行php artisan migrate报错
    3
    问题: 之前生成表结构时已在数据库中存在表 无法再次创建
    解决: 将数据库discover中的表清空

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant