1. Create a new user: 1. Execute SQL statement to create a new one (recommended): INSERT INTO `mysql`.`user` ( `Host`, `User`, `Password`, `ssl_cipher`, `x509_issuer`, `x509_subject`, `authentication_string` ) VALUES ( '%', -- Allow remote access 'zhangsan', -- User name '*6BB4837EB74329105EE4568DDA7DC67ED2CA2AD9', -- Plain text password: 123456 '', '', '', '' ); select * from user where `user` = 'zhangsan'; 2. Use tools to create: 2. Set permissions 1. Configure the database and data table (remember to save): 2. Set [Server Permissions] to revoke all 3. Refresh database permissions: MariaDB [(none)]> FLUSH PRIVILEGES; Query OK, 0 rows affected (0.000 sec) 4. Configure the connection: 3. Test permissions: 1. Test results show that the databases and tables without permissions have been blocked: 2. Test whether there is deletion permission: The above is the full content of this article. I hope it will be helpful for everyone’s study. I also hope that everyone will support 123WORDPRESS.COM. You may also be interested in:
|
<<: Several ways to easily traverse object properties in JS
>>: Nginx local directory mapping implementation code example
Static files Nginx is known for its high performa...
Table of contents 1. lazy 2.trim 3.number 4.stop ...
Today I will introduce to you a difference betwee...
Management of input and output in the system 1. U...
I recently wrote a mobile page at work, which was...
1. Download Maven Maven official website: http://...
Preface Today I installed MySQL and found that th...
The online search to modify the grub startup time...
Today is another very practical case. Just hearin...
Detailed explanation of mysql exists and not exis...
Preface What is a slow query and how to optimize ...
This article shares the installation tutorial of ...
1. Download MySQL database and install and config...
<br />Not long ago, due to business needs, I...
Netfilter Netfilter is a packet processing module...