How to create a standalone database user using phpMyAdmin

Source: Internet
Author: User
Tags phpmyadmin

It is generally necessary to build multiple sites, requiring multiple databases to default, but all databases are managed using root account management. This leaves a lot of trouble, if one of the sites is getting the root password, you can modify or delete all of your databases. It is recommended that you create a separate account management for each database, and that this account will only have permissions on that database. Using commands to create a standalone user is difficult for users who are unfamiliar with MySQL, and here is a demonstration of using the phpMyAdmin implementation.

A Pre-operation Preparation

    1. A host that can be used normally, windows,linux can
    2. Php,mysql Environment equipped with phpMyAdmin
    3. Root Admin account password

You can select a system template with a PHP environment when you turn on the core cloud host. Because it is an already integrated environment, no additional configuration is required and can be used directly

Two To create a standalone user step

    1. Open phpMyAdmin login screen, use root account, password login
    1. Create the database, click the database, enter the database name, click Create, the database created here is named demo
    1. Back to the homepage, select "Permissions" and click "Add New User"

Enter the user name, the host is set to local, the password is recommended to use auto-generated, and then save the password

    1. Set the account's access rights to the specified database

After the user is created successfully, the point edit permission can directly modify the user rights, specify that the database point execution will go to the Database Permissions setting interface

Check the "data" and "structure" in addition to the management, click to execute.

After setting the permissions, go back to the phpMyAdmin login screen, log in with the newly created account, log in and discover that only the demo database and MySQL default database are set properly, indicating that the account and database permissions are set successfully.

AC qq:2881064157

How to create a standalone database user using phpMyAdmin

Contact Us

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.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.