PhpMyadmin: creating databases and setting user permissions _ PHP Tutorial

Source: Internet
Author: User
PhpMyadmin creates databases and sets user permissions. Phpmyadmin is a good WEB-based mysql database management software. if you want to create a database and set user permissions, you must perform operations with high user permissions, such as ROOT permissions, below I phpmyadmin is a very good WEB-based mysql database management software. if you want to create a database and set user permissions, we must operate on the user's high permissions, such as ROOT permissions, next I will introduce it to you.

Configure phpmyadmin first, or you cannot log on.


Go to the libraries directory under phpmyadmin and modify the config. default. php file. Find $ cfg ['servers'] [$ I] ['password'] = '',

Change to $ cfg ['servers'] [$ I] ['password'] = '000000 ′;

123456 is the password you want. after you restart mysql, the new password takes effect.

Step 1: log on to phpMyAdmin as an administrator account. generally, log on to phpMyAdmin as root.

Part 2: create a database for which permissions are to be set (this is not required if it already exists)

Fill in the database name and database code. I chose the "Chinese-Chinese simplified" encoding and click Create. The data will be ready.

Step 3: Create a management User

After creating the database, click the new database "sweiku.com" and click "permissions". a new page is displayed, and then click "add new user", as shown in figure

In this step, note that you do not need to select global permissions and then click execute directly.

Step 4: Set user permissions

Select the corresponding permissions and click execute

...

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.