Modify the mysql database link remote password (rpm)

Original: https: //blog.csdn.net/jianjiao7869/article/details/81029171

There are two original root user, allowing only a localhost login, a user can run all login and password is root, so the database is always inexplicably deleted

Select the mysql database, execute the following this sql statement:

Here, leaving only allow localhost root user login, and one that allows all users landing I was deleted before is deleted, the table as well as a user: root host:% of data, this is the root user's password, father of the pit of.

Referring to the original text added olivertian the user, granted all permissions (user can also create a new grant different privileges, such as allowing only certain users to view a database), allows all users to log in and change your password.

 

Attached to add a mysql user and grant different privileges Bowen: https: //www.cnblogs.com/lijinping321/p/8514569.html

Guess you like

Origin www.cnblogs.com/olivertian/p/11088159.html