user management — phpmyadmin 5.2.0 documentation-尊龙登录
user management is the process of controlling which users are allowed to connect to the mysql server and what permissions they have on each database. phpmyadmin does not handle user management, rather it passes the username and password on to mysql, which then determines whether a user is permitted to perform a particular action. within phpmyadmin, administrators have full control over creating users, viewing and editing privileges for existing users, and removing users.
within phpmyadmin, user management is controlled via the user accounts tab from the main page. users can be created, edited, and removed.
creating a new user¶
to create a new user, click the add user account link near the bottom of the user accounts page (you must be a “superuser”, e.g., user “root”). use the textboxes and drop-downs to configure the user to your particular needs. you can then select whether to create a database for that user and grant specific global privileges. once you’ve created the user (by clicking go), you can define that user’s permissions on a specific database (don’t grant global privileges in that case). in general, users do not need any global privileges (other than usage), only permissions for their specific database.
editing an existing user¶
to edit an existing user, simply click the pencil icon to the right of that user in the user accounts page. you can then edit their global- and database-specific privileges, change their password, or even copy those privileges to a new user.
deleting a user¶
from the user accounts page, check the checkbox for the user you wish to remove, select whether or not to also remove any databases of the same name (if they exist), and click go.
assigning privileges to user for a specific database¶
users are assigned to databases by editing the user record (from the user accounts link on the home page). if you are creating a user specifically for a given table you will have to create the user first (with no global privileges) and then go back and edit that user to add the table and privileges for the individual table.