Last active
April 14, 2024 06:42
-
-
Save Hikingyo/549698845d166e49eb3d238d03d49236 to your computer and use it in GitHub Desktop.
create admin user with all privileges on mysql/mariadb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
CREATE USER 'admin'@'localhost' IDENTIFIED BY 'some_pass'; | |
GRANT ALL PRIVILEGES ON *.* TO 'admin'@'localhost' WITH GRANT OPTION; | |
FLUSH PRIVILEGES; | |
## remote connection - not secure | |
CREATE USER 'admin'@'%' IDENTIFIED BY 'some_pass'; | |
GRANT ALL PRIVILEGES ON *.* TO 'admin'@'%' WITH GRANT OPTION; | |
FLUSH PRIVILEGES; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Update phpMyAdmin
Using sudo, edit
/etc/dbconfig-common/phpmyadmin.conf
file updating user/password values in the following sections (replacing some_pass by the password used in Step #2):