fix: Update user creation script to use mysql_native_password authentication
This commit is contained in:
@@ -1,8 +1,8 @@
|
||||
-- Create database user if not exists
|
||||
-- This runs automatically on container startup via docker-entrypoint-initdb.d
|
||||
|
||||
CREATE USER IF NOT EXISTS 'amnezia'@'%' IDENTIFIED BY 'amnezia';
|
||||
CREATE USER IF NOT EXISTS 'amnezia'@'localhost' IDENTIFIED BY 'amnezia';
|
||||
CREATE USER IF NOT EXISTS 'amnezia'@'%' IDENTIFIED WITH mysql_native_password BY 'amnezia';
|
||||
CREATE USER IF NOT EXISTS 'amnezia'@'localhost' IDENTIFIED WITH mysql_native_password BY 'amnezia';
|
||||
GRANT ALL PRIVILEGES ON amnezia_panel.* TO 'amnezia'@'%';
|
||||
GRANT ALL PRIVILEGES ON amnezia_panel.* TO 'amnezia'@'localhost';
|
||||
FLUSH PRIVILEGES;
|
||||
|
||||
Reference in New Issue
Block a user