Create a user: create user 'oukele'@'%' identified by 'oukele'; If the information listed below is prompted, you need to refresh the permission table The MySQL server is running with the --skip-grant-tables option so it cannot execute this st... Here are the steps: Extended Learning Create a new mysql user and grant remote access rights [root@demo /]# mysql -u root -p #Log in to the server database Enter password:123xxx #1. Create a new user testuser with password testuserpass CREATE USER 'testuser'@'localhost' IDENTIFIED BY 'testuserpass'; #2. Create a database testDB create database testDB; #3. Execute the command to add testDB permissions for the testuser user grant all privileges on testDB.* to testuser@localhost identified by 'testuserpass'; #4. Execute the command to add remote access permissions for the testuser user GRANT ALL PRIVILEGES ON testDB.* TO 'testuser'@'%' IDENTIFIED BY 'testuserpass' WITH GRANT OPTION; #5. Refresh the permission table flush privileges; The above is all the content of this knowledge point. More relevant knowledge points can be found in the related articles below. You may also be interested in:
|
<<: How to delete the container created in Docker
>>: Cross-domain issues in front-end and back-end separation of Vue+SpringBoot
When using vue to develop projects, the front end...
The table structure is as follows: id varchar(32)...
Table of contents 1. Query Optimization 1. MySQL ...
Table of contents 1. Select database USE 2. Displ...
environment: 1. Windows Server 2016 Datacenter 64...
Copy code The code is as follows: <!DOCTYPE ht...
The inline-block property value becomes very usef...
Sort Tool The Linux sort command is used to sort ...
The security issues encountered in website front-...
I haven't used mysql on my computer for a lon...
Table of contents What is an index The difference...
1. Install MySQL: Use the following three command...
theme Today I will teach you how to create a circ...
Preface In daily work or study, it is inevitable ...
When threads execute concurrently, we need to ens...