modifying passwords for database users is one of the more common tasks for DBAs. There are several different ways to modify the password for a MySQL user account, using cryptographic functions to modify the password in the recommended way. This
Today, we have a course design project to use the MySQL database to execute the command line mysql-u root-P as usual. I want to open the database to create a table, but I am always prompted that I cannot open it.
I used MySQL before and installed a
Changing password for database users is one of the more common tasks for DBAs. There are several different ways to password changes to the MySQL user account. The recommended way to use cryptographic functions is to change the password.This paper
Add a user to MySql, create a database, authorize the user, delete the user, and change the password bitsCN.com
1. create a user.
// Log on to MYSQL
@> Mysql-u root-p
@> Password
// Create a user
Mysql> insert into mysql. user (Host, User,
Mysql permission operation, user management, password operation, mysql user managementMysql Permissions
Mysql has four tables with control permissions: user table, db table, tables_priv table, and columns_priv table.
The verification process of the
Changing the password for a database user is one of the common tasks of DBA. There are several different ways to change the password of a MySQL user account. We recommend that you use the encryption function to modify the password.
Changing the
Install MySQL1. Download the MySQL Installation FileThe following two files are required to install MYSQL:
MySQL-server-5.1.7-0.i386.rpm To: http://dev.mysql.com/downloads/mysql/5.1.html, open this webpage and click"Linux x86 generic RPM
1. Create a user.
// Log on to MYSQL
@> Mysql-u root-p
@> Password
// Create a user
Mysql> insert into mysql. user (Host, User, Password, ssl_cipher, x509_issuer, x509_sub
Ject) values ("localhost", "pppadmin", password ("passwd "),'','','');
In
[Mysql] Common commands-user operations (create, authorize, modify, delete) and mysql user operations
Each user in Mysql corresponds to different user addresses and permissions.
There are three ways to create a Mysql user: 1. create user 2. grant 3.
Change the root user password for MySQL 1, first access the database[[email protected] ~]# /usr/local/mysql/bin/mysql -urootWelcome to the MySQL monitor. Commands end with ; or \g.Your MySQL connection id is 2Server version: 5.6.36 MySQL Community
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.