Default awal GRANT yang diberikan adalah 'root'@'localhost'
Kalau saya mau mengakses dari komputer lain ke database server, hal tersebut tidak diperbolehkan karena host tersebut bukan localhost. Maka dari itu saya harus set di MySQL.
> use mysql;
> grant all privileges on *.* to root@'%' identified by 'oklah';
> flush privileges;
No comments:
Post a Comment