1. edit file my.cnf
vim /etc/mysql/my.cnf
ubah
bind-address = 127.0.0.1
ke
bind-address = 0.0.0.0 untuk bisa diakses di semua devices
atau matikan bind-address dengan '#'
#bind-address = 127.0.0.1
2. masuk MySQL CLI
bind-address = 127.0.0.1
ke
bind-address = 0.0.0.0 untuk bisa diakses di semua devices
atau matikan bind-address dengan '#'
#bind-address = 127.0.0.1
2. masuk MySQL CLI
mysql> GRANT ALL PRIVILEGES ON *.* TO 'root'@'%' IDENTIFIED BY 'password' WITH GRANT OPTION;
mysql> FLUSH PRIVILEGES;
3. Restart MySQL server
service mysql restart
Komentar
Posting Komentar