In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-18 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Database >
Share
Shulou(Shulou.com)06/01 Report--
Today, I will talk to you about how to add new users to mysql. Many people may not know much about it. In order to make you understand better, the editor has summarized the following content for you. I hope you can get something according to this article.
How to add new users to mysql
1. Log in to MYSQL
> mysql-u root-p
two。 Create a new user
CREATE USER 'username'@'host' IDENTIFIED BY' password'
Username: the user name created
Host: specify the host on which the user logs in. If local users can use localhost, if you want to log in from any remote host, use the wildcard%.
Password: the login password of the user, which can be empty
3. Authorize the user
GRANT privileges ON databasename.tablename TO 'username'@'host'
Privileges: user's permission to operate. Use ALL if you want to grant all permissions.
Databasename: database name
Tablename: table name
MySQL is a relational database management system developed by the Swedish company MySQL AB and belongs to the products of Oracle. MySQL is one of the most popular relational database management systems. In the aspect of WEB application, MySQL is one of the best RDBMS (Relational Database Management System) application software. MySQL is a relational database management system in which relational databases store data in different tables instead of all data in one large warehouse, which increases speed and flexibility.
After reading the above, do you have any further understanding of how mysql can add new users? If you want to know more knowledge or related content, please follow the industry information channel, thank you for your support.
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.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.