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

Table 'wizard_2.wz_project_catalogs' doesn't exist #211

Open
xiazhaozhao opened this issue Nov 3, 2022 · 1 comment
Open

Table 'wizard_2.wz_project_catalogs' doesn't exist #211

xiazhaozhao opened this issue Nov 3, 2022 · 1 comment

Comments

@xiazhaozhao
Copy link

Hello:
报错如下:
[2022-11-03 09:59:54] production.ERROR: SQLSTATE[42S02]: Base table or view not found: 1146 Table 'wizard_2.wz_project_catalogs' doesn't exist (SQL: select wz_project_catalogs.*, (select count(*) from wz_projectswherewz_project_catalogs.id=wz_projects.catalog_idandwz_projects.deleted_atis null) asprojects_countfromwz_project_catalogswhereshow_in_home= 1 order bysort_levelasc) {"exception":"[object] (Illuminate\\Database\\QueryException(code: 42S02): SQLSTATE[42S02]: Base table or view not found: 1146 Table 'wizard_2.wz_project_catalogs' doesn't exist (SQL: selectwz_project_catalogs.*, (select count(*) from wz_projectswherewz_project_catalogs.id=wz_projects.catalog_idandwz_projects.deleted_atis null) asprojects_countfromwz_project_catalogswhereshow_in_home= 1 order bysort_levelasc) at /webroot/vendor/laravel/framework/src/Illuminate/Database/Connection.php:664, Doctrine\\DBAL\\Driver\\PDO\\Exception(code: 42S02): SQLSTATE[42S02]: Base table or view not found: 1146 Table 'wizard_2.wz_project_catalogs' doesn't exist at /webroot/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDO/Exception.php:18, PDOException(code: 42S02): SQLSTATE[42S02]: Base table or view not found: 1146 Table 'wizard_2.wz_project_catalogs' doesn't exist at /webroot/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOConnection.php:82) [stacktrace] #0 /webroot/vendor/laravel/framework/src/Illuminate/Database/Connection.php(624): Illuminate\\Database\\Connection->runQueryCallback('selectwz_proj...', Array, Object(Closure))
`

Docker version 20.10.10, build b485636

mysql version 8.0.27

@mylxsw
Copy link
Owner

mylxsw commented Nov 3, 2022

是不是没有执行下面这两个命令

docker run -it --rm --name my-wizard my-wizard php artisan migrate:install
docker run -it --rm --name my-wizard my-wizard php artisan migrate

命令中环境变量相关的参数自己加一下哦

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

2 participants