Active
Project:
SQL Views API
Version:
2.0.0-beta1
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
17 Oct 2025 at 16:41 UTC
Updated:
31 Oct 2025 at 21:38 UTC
Jump to comment: Most recent
When you try to reinstall the Drupal site using the config there is warning.
You are about to:
* DROP all tables in your 'db_test' database.
┌ Do you want to continue? Yes
[warning] Failed to drop or create the database. Do it yourself before installing. ERROR 1051 (42S02) at line 1: Unknown table 'db_test.sv_user_notes'
[notice] Starting Drupal installation. This takes a while.
Fresh re-install of a drupal site using the existing configuration.
MySQL permissions are good.
mysql> SHOW GRANTS FOR 'dbuser_test'@'%'\G;
*************************** 1. row ***************************
Grants for dbuser_test@%: GRANT USAGE ON *.* TO `dbuser_test`@`%`
*************************** 3. row ***************************
Grants for dbuser_test@%: GRANT SELECT, INSERT, UPDATE, DELETE, CREATE, DROP, INDEX, ALTER, CREATE TEMPORARY TABLES, LOCK TABLES, CREATE VIEW, SHOW VIEW ON `db_test`.* TO `dbuser_test`@`%`
Comments
Comment #2
chi commentedLooks like core bug. It does not distinguish tables and views. I typically drop the database manually before reinstalling site.
Comment #3
emilorol commentedI think we can add a drop command similar to the rebuild command.
Comment #4
emilorol commentedComment #5
chi commentedLooks good. Patches are welcome.
Comment #6
emilorol commentedI will do that