프로그래밍/MySql
[MariaDB] root계정 외부접속 허용
홍짱아아빠
2021. 1. 14. 13:32
반응형
CentOS7 기준
1. mysql -uroot -hlocalhost -p
2. update user set password=password('비밀번호') where user='root'
3. grant all privileges on *.* to 'root'@'%' identified by '비밀번호'
4. flush privileges;
5. systemctl restart mysql
반응형