Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Configuration of MySQL login

2025-01-30 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Database >

Share

Shulou(Shulou.com)05/31 Report--

This article mainly introduces "the configuration of MySQL login". In the daily operation, I believe that many people have doubts about the configuration of MySQL login. The editor consulted all kinds of materials and sorted out simple and easy-to-use operation methods. I hope it will be helpful for you to answer the doubts of "configuration of MySQL login"! Next, please follow the editor to study!

GRANT ALL PRIVILEGES ON *. * TO root@ "%" IDENTIFIED BY 'abc'

> select user, host, password from mysql.user

+-+

| | user | host | password | |

+-+

| | root | localhost | 7b49a39922703c30 | |

| | root | wengdev01 |

| | root | 127.0.0.1 |

| | localhost |

| | wengdev01 |

| | root |% | 7b49a39922703c30 |

+-+

6 rows in set (0.00 sec)

DELETE FROM mysql.user WHERE Host'% 'and user =' root'

Mysql > select user, host, password from mysql.user

+-+

| | user | host | password | |

+-+

| | root |% | 7b49a39922703c30 |

+-+

1 row in set (0.00 sec)

Mysql > FLUSH PRIVILEGES

Query OK, 0 rows affected (0.00 sec)

# or delete from mysql.user where password='' or user='';update mysql.user set host='%' where user='root';GRANT ALL PRIVILEGES ON *. * TO root@ "%" IDENTIFIED BY 'abc';FLUSH PRIVILEGES

Create a new user and grant all permissions except administration.

GRANT CREATE,DROP,GRANT OPTION,REFERENCES,EVENT,ALTER,DELETE,INDEX,INSERT,SELECT,UPDATE,LOCK TABLES,TRIGGER,CREATE TEMPORARY TABLES,CREATE VIEW,SHOW VIEW ON *. * TO cs@ "%" IDENTIFIED BY 'abc'

At this point, the study on the "configuration of MySQL login" is over. I hope to be able to solve your doubts. The collocation of theory and practice can better help you learn, go and try it! If you want to continue to learn more related knowledge, please continue to follow the website, the editor will continue to work hard to bring you more practical articles!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Database

  • Mybatis oracle bulk insert

    Insert into INFOTOEMPLOEEselect INFO_EMPLOEES.NEXTVAL,A.* from (

    © 2024 shulou.com SLNews company. All rights reserved.

    12
    Report