Home > Database > phpMyAdmin > How to add users on phpmyadmin

How to add users on phpmyadmin

王林
Release: 2019-12-11 14:56:15
Original
3332 people have browsed it

How to add users on phpmyadmin

Click "Permissions" on the right side of the main interface to create a database user

How to add users on phpmyadmin

In the permissions page, we click "Add New" User”

How to add users on phpmyadmin

In this page, we fill in the user name of the database to be created **.cn, the user’s access scope, and password

How to add users on phpmyadmin

As shown in the picture above, we filled in the user name: **.cn. This database user only allows local access. For the host, select local; we can use the automatically generated password. Click below "Generate" will generate a random password, and then click "Copy" to automatically fill in the password box. You can also define a password yourself.

The system is more user-friendly. It will check the box by default to grant all permissions to the database "netshield", which is exactly what we want. If you don't select the global permissions box below, just scroll to the bottom of the page and click Execute to create a new user. If the database user is successfully created, the following page will be returned:

How to add users on phpmyadmin

Here, after creating the user, you can then set the specific access rights of the user's database. If specific settings are required, continue setting them. If not, you can leave them alone. If you need to set the permissions of the user **.cn separately in the future, you can continue to do this:

How to add users on phpmyadmin

As shown below, select the netshield we just created in the database list, and it will Automatically enter the permission setting page of the database. If you want to give this user permissions on other libraries, you can continue to set up like this, but remember, you must not give any global permissions, which are only what root should have.

How to add users on phpmyadmin

In the permission settings in the picture below, we select all the permissions in the "Data" and "Structure" columns, and do not select the management permissions. Just click Execute.

How to add users on phpmyadmin

At this point, we have completed all the settings, created a database: netshield, and created the database user **.cn, specifically specifying that this user is only for netshield access rights. In this way, the purpose of specifying independent user access rights for each database is achieved.

Recommended related articles and tutorials: phpmyadmin tutorial

The above is the detailed content of How to add users on phpmyadmin. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template