Phpmyadmin installation tutorial phpmyadmin installation configuration. Phpmyadmin installation tutorial phpmyadmin installation configuration how to install phpmyadmin? Some friends may not know how to install phpmyadmin. the following green tea editor will introduce the phpmyadmin installation tutorial phpmyadmin installation and configuration.
How to install phpmyadmin? Some friends may not know how to install phpmyadmin. the following green tea editor will detail the phpmyadmin installation and configuration tutorial. if you need it, please refer to it!
Phpmyadmin is a mysql management tool. after installing this tool, 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.
PHPMyAdmin installation configuration:
1. The PHPMyAdmin package downloaded from the internet is usually released to the htdocs Directory, for example, htdocs \ phpmyadmin.
2. open The phpmyadmin directory and check whether the config. sample. inc. php file exists. if so, rename it config. inc. php. (Depending on the version, config may be directly available. inc. php file, you do not need to change the name, or there may be no config. sample. inc. php or config. inc. php, go to the phpmyadmin \ libraries Directory and set config. default. copy php to The phpmyadmin directory and rename it config. inc. php ).
3. open config. inc. in the php file (you can use the WordPad), find $ cfg ['blowfish _ secret'] = ''; and $ cfg ['servers'] [$ I] ['auth _ type'] = 'cooker ';, if the value of $ cfg ['servers'] [$ I] ['auth _ type'] is as cookie as we saw earlier, therefore, we must write a string of characters in the quotation marks of $ cfg ['blowfish _ secret'] = ''. you can regard it as an identity verification code. For example, $ cfg ['blowfish _ secret'] = 'sunec '. Save the disk and exit.
So far, the installation and configuration of phpmyadmin is over. enter the browser and enter http: // localhost/phpmyadmin/main in the address bar. php, (the path here is determined based on the name of the directory where you previously decompressed phpmyadmin to htdocs). If it succeeds, the page displays a picture asking you to enter your username and password, enter the username and password (Mysql username and password) and enter the main interface of phpmyadmin. As for usage ~ We will not start it here for the time being. you can explore it first ~
How to install the tool:
1. download phpmyadmin from the Internet and decompress it to the accessible web directory (if it is a virtual space, decompress it and upload it to the web Directory through ftp ), of course, you can modify the name of the extracted file.
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
$ Cfg ['pmaabsoluteuri '] = ''; enter the phpmyadmin access url here.
B. mysql host information
$ 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
$ 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
$ 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)
$ 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.
So far, you have successfully installed phpmyadmin. easy to use. log on to the console and try again.
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, leave it blank. Otherwise, an error will be prompted when you log on to phpMyAdmin.
Phpmyadmin installation and configuration how to install phpmyadmin? Some friends may not know how phpmyadmin is installed. the following green tea editor will introduce phpmyadmin in detail...