PhpMyAdmin installation tutorial

Source: Internet
Author: User
Tags mysql host

It is very suitable for database managers who are unfamiliar with database operation commands. Next I will explain how to install the tool:

1. First download phpMyAdmin from the InternetAnd decompress it to the accessible web directory (if it is a virtual space, you can decompress it and upload it to the web directory through FTP). Of course, you can modify the name of the file after decompression.

2. Configure the config file
Open the config. Default. php file under libraries, find the following items in sequence, and configure the items as instructed:
A. Visit the website
Reference:
$ Cfg ['pmaabsoluteuri '] = ''; enter the phpMyAdmin access URL here.

B. MySQL host information
Reference:
$ Cfg ['servers'] [$ I] ['host'] = 'localhost'; // MySQL hostname or IP address
Enter the IP address of the localhost or MySQL server. If MySQL and phpMyAdmin are on the same server, press the default localhost
$ Cfg ['servers'] [$ I] ['Port'] = ''; // MySQL port-leave blank for default port
MySQL port. If it is 3306 by default, leave it blank.

C. MySQL user name and password
Reference:
$ Cfg ['servers'] [$ I] ['user'] = 'root'; // MySQL user used by phpMyAdmin to access the MySQL user name
FG ['servers'] [$ I] ['Password'] = ''; // MySQL password (only needed corresponds to the password of the above MySQL user name
D. Authentication Method
Reference:
$ Cfg ['servers'] [$ I] ['auth _ type'] = 'cooker ';
There are four modes available here: cookie, HTTP, HTTP, config
In config mode, you can directly access the phpMyAdmin access URL without entering the user name and password. It is insecure and is not recommended.
When this option is set to cookie, HTTP, or HTTP, You need to verify the data username and password to log on to phpMyAdmin. The details are as follows:
The PHP installation mode is Apache, and HTTP and cookie can be used;
The PHP installation mode is CGI and cookie can be used.

E. Set the phrase password (blowfish_secret)
Reference:
$ Cfg ['blowfish _ secret'] = '';
If the authentication method is set to cookie, you need to set the phrase password and the Setting Password, which is determined by yourself, but cannot be left blank. Otherwise, an error will be prompted when you log on to phpMyAdmin.
Okay, so far, you have successfully installed phpMyAdmin. Easy to use. log on to the console and try again.

Note:
This document only describes the basic configuration of installing phpMyAdmin. For details about the configuration parameters in the config. Default. php file, you can

PhpMyAdmin is a MySQL database management tool. After the tool is installed, you can directly manage Mysql Data in the form of web, instead of executing system commands, it is very suitable for database managers who are unfamiliar with database operation commands. The following describes the installation method of this tool in detail.
1. Download
1. Download phpMyAdmin installation package from official site: http://www.phpmyadmin.net/(install all-programming ages in various languages)
2. decompress the package to a web-accessible directory. If it is a virtual space, decompress the package and upload it to the web directory through FTP, you can also modify the name of the extracted file (you can customize the directory name ).

Ii. Configuration
3. Open/libraries/config. default. PHP file (the old version is config in the root directory. inc. PHP file), use a WordPad (do not use Notepad, this is utf8 encoding) for editing, follow the instructions to configure.
4. Find $ cfg ['pmaabsoluteuri '] = ''; // modify the phpMyAdmin URL of the space to be uploaded.
For example, $ cfg ['pmaabsoluteuri '] = 'HTTP: // website domain name/PHPmyAdmin /';
5. Search for $ cfg ['servers'] [$ I] ['host'] = 'localhost'; // The default value is usually used, and there are exceptions. You do not need to modify the value.
6. find $ cfg ['servers'] [$ I] ['auth _ type'] = 'config'; // debug config in your own machine; if a cookie is used for the space on the network.
There are four modes available: cookie, HTTP, HTTP, config
① You can directly enter the phpMyAdmin access URL in config mode without entering the user name and password. It is insecure and is not recommended.
② Set the cookie, HTTP, and HTTP methods. to log on to phpMyAdmin, you need the data username and password for verification.
Specifically, the PHP installation mode is Apache, and HTTP and cookie can be used. The PHP installation mode is CGI and cookie can be used.
7. Search for $ cfg ['servers'] [$ I] ['user'] = 'root'; // MySQL Username
8. find $ cfg ['servers'] [$ I] ['Password'] = ''; // MySQL password (only leave the needed blank)
9. find $ cfg ['servers'] [$ I] ['only _ db'] = ''; // you can set only one data, set your database name. If you want to set up a server, leave it blank.
10. find $ cfg ['defaultlang '] = 'zh'; // select a language. ZH indicates the meaning of Simplified Chinese.
11. find $ cfg ['blowfish _ secret'] = ''; // If the authentication method is set to cookie, you need to set the phrase password and the reason for setting the password, you cannot leave this field empty. Otherwise, an error as shown in is prompted when you log on to phpMyAdmin.

12. Save the settings. Now you can upload the settings to the network space. View http: // website domain name/PHPmyAdmin/and test the settings. (Enter the username and password of the database.)
if you want to install phpMyAdmin, The mysqli extension is missing. Check the PHP configuration ." Error.
solution:
① go to \ libraries \ config in the phpMyAdmin folder. default. find the $ cfg ['servers'] [$ I] ['extension'] = 'mysql'; statement in the PHP file.
② If $ cfg ['servers'] [$ I] ['extension'] = 'mysql' is found, continue to search for the following $ cfg ['servers'] [$ I] ['extension'] = ' mysqli '; and remove the comment.
③ if $ cfg ['servers'] [$ I] ['extension'] = 'mysql' is not found, put the $ cfg ['servers'] [$ I] ['extension'] = ' mysqli '; statement, change to $ cfg ['servers'] [$ I] ['extension'] = 'mysql'; statement. (That is, ensure that the "MySQL" value takes effect)

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.