fix db issued

This commit is contained in:
Frank Harris 2026-04-29 19:44:07 -04:00
parent 5b28e721c8
commit 72db4fe9ba
10 changed files with 180 additions and 61 deletions

View file

@ -0,0 +1,11 @@
-- GSP MySQL module migration: support configurable admin user and longer admin password.
-- Execute against the panel database (gsp_ prefix shown below).
ALTER TABLE `gsp_mysql_servers`
ADD COLUMN `mysql_admin_user` varchar(64) NOT NULL DEFAULT 'root' AFTER `mysql_port`;
ALTER TABLE `gsp_mysql_servers`
MODIFY COLUMN `mysql_root_passwd` varchar(255) NULL;
-- Optional: set current rows to your preferred admin user (example: remoteuser)
-- UPDATE `gsp_mysql_servers` SET `mysql_admin_user` = 'remoteuser' WHERE `mysql_admin_user` = 'root' OR `mysql_admin_user` = '';