The current database is only a root user, you need to create a read-only account for other uses, because the user is using a database management tool accessible in other hosts, so even remote access account, follow these steps.
1. using the existing root user login to Mysql.
mysql -uroot -p
2. Create a user and authorize the SELECT query authority, authorized remote access, attention, command username / password means the user name and password, please specify your own. To limit specifies only this user can use IP access Mysql, will be replaced with% IP can be.
GRANT SElECT ON *.* TO 'username'@'%' IDENTIFIED BY "password";
3. Refresh mysql privileges, allowing users to create, authorize force.
flush privileges;
This completes.
1. using the existing root user login to Mysql.
mysql -uroot -p
2. Create a user and authorize the SELECT query authority, authorized remote access, attention, command username / password means the user name and password, please specify your own. To limit specifies only this user can use IP access Mysql, will be replaced with% IP can be.
GRANT SElECT ON *.* TO 'username'@'%' IDENTIFIED BY "password";
3. Refresh mysql privileges, allowing users to create, authorize force.
flush privileges;
This completes.