linux version of mysql open remote login

1 Log Database  

mysql -u root -p 

2 use mysql;

3 select User, authentication_string, Host from user (user query table)

4 GRANT ALL PRIVILEGES ON *.* TO 'root'@'%' IDENTIFIED BY '123456'    

5 flush privileges; (with immediate effect)
6 select User, authentication_string, Host from user (again, see the user table)
 

Guess you like

Origin www.cnblogs.com/MUQINGFENG123/p/11793454.html