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

SQLite Compatibility #167

Open
swissspidy opened this issue Oct 21, 2023 · 1 comment
Open

SQLite Compatibility #167

swissspidy opened this issue Oct 21, 2023 · 1 comment

Comments

@swissspidy
Copy link
Member

swissspidy commented Oct 21, 2023

When I manually run the tests locally with SQLite, the following scenario is failing:

001 Scenario: No wp-config.php  # features/config-create.feature:3
When I run `wp db create` # features/config-create.feature:60
$ wp db create

ERROR 1007 (HY000) at line 1: Can't create database 'wp_cli_test'; database exists

The way the SQLite db is set up for the tests, the error message when trying to run wp db create makes sense.

Possible options:

  • See if this can be resolved via a change to the db command
  • Make this scenario MySQL-only and add another, SQLite-only scenario that doesn't have the wp db create step.
@mrsdizzie
Copy link

I think also something that could be fixed for general SQLite use:

wp config create --skip-check
Error: Parameter errors:
 missing --dbname parameter (Set the database name.)
 missing --dbuser parameter (Set the database user.)

These are set in tests so it is OK -- but SQLite does not need them so maybe it can check for SQLite and not require those. Right now you couldn't install WordPress with SQLite only without having to specify a dbname and dbuser that won't get used

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

No branches or pull requests

2 participants