Get the App
SLTechnology News&Howtos  ›  Database  › 

How to create a user name in mysql

Shulou Source: shulou.com Published: 2022-05-31 21:03:26 09月11日 Update

This article introduces how to create a user name in mysql, the content is very detailed, interested friends can use for reference, I hope it can be helpful to you.

How does mysql establish a user name?

1.mysql creation Library create database Database name

2.mysql creates users and passwords

Create user username IDENTIFIED by 'user password'

3. Assign library permissions to the user

GRANT ALL ON database name. * TO 'username'

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.

The SQL language used by MySQL is the most commonly used standardized language for accessing databases. MySQL software adopts the dual licensing policy, which is divided into community version and commercial version. Because of its small size, high speed and low total cost of ownership, especially open source, the development of small and medium-sized websites generally choose MySQL as the website database.

What is the default user name and password for MySQL?

The default user name is root and the default password is empty.

User = "root"; passwor= ""

How to change the mysql password?

How to change the mysql password:

Method 1: use the SET PASSWORD command

Log in to MySQL first.

Format: mysql > set password for username @ localhost = password ('new password')

Example: mysql > set password for root@localhost = password ('123')

Method 2: use mysqladmin

Format: mysqladmin-u username-p old password password new password

Example: mysqladmin-uroot-p123456 password 123

Method 3: edit the user table directly with UPDATE

Log in to MySQL first.

On how to create a user name in mysql to share here, I hope the above content can be of some help to you, can learn more knowledge. If you think the article is good, you can share it for more people to see.

Tags: User user name data password database method example content name more format website language speed new password help login different yes small and medium Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Linux OPPO Reno Shulou Technology Shulou Information Redmi