fix db issued
This commit is contained in:
parent
5b28e721c8
commit
72db4fe9ba
10 changed files with 180 additions and 61 deletions
11
modules/mysql/mysql_servers_admin_user_migration.sql
Normal file
11
modules/mysql/mysql_servers_admin_user_migration.sql
Normal 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` = '';
|
||||
Loading…
Add table
Add a link
Reference in a new issue