Created
June 6, 2018 13:44
-
-
Save pihomeserver/418653f149c1a7ecb6aabc434dbefc4f to your computer and use it in GitHub Desktop.
MySQL / MariaDB - Remote root access
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
Allow remote connection | |
1) As root user execute (replace password) | |
``` | |
GRANT ALL PRIVILEGES ON *.* TO 'root'@'%' IDENTIFIED BY 'password'; | |
``` | |
2) In file /etc/mysql/mariadb.conf.d/50-server.cnf comment line | |
``` | |
#bind-address = 127.0.0.1 | |
``` | |
3) Restart service | |
``` | |
service mariadb restart | |
``` |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment