phpMyAdmin is a tool for managing MySQL in a Web interface. If the Rootdocument directory is/var/www/html, the phpMyAdmin is installed in the directory and can be accessed through http://IP:port/phpmyadmin. But to be safe, to avoid cyber-bots attacking, we typically rename that directory to a different name. Next we'll look at the detailed configuration:
Unpack The TAR package:
#tar-ZVXF phpmyadmin-4.0.8-all-languages.tar.gz-c/var/www/html
Rename the Directory
#mv/var/www/html/phpmyadmin/var/www/html/mysqladmin
Modifying a configuration file
#cd/var/www/html/mysqladmin/libraries
#vim config.default.php
Modify the following lines:
$cfg [' pmaabsoluteuri '] = ' http://192.168.1.145/mysqladmin ';
This is the access address after you rename the directory name
$cfg [' Servers '] [$i] [' auth_type '] = ' cookie ';
If you are debugging on your own machine, the following parameters are config; If you are debugging over the network, the following parameters are cookies. Here I modify the cookie.
$cfg [' Servers '] [$i] [' user '] = ' root ';
Here is the MySQL user name
$cfg [' Servers '] [$i] [' password '] = ';
Here's the MySQL password.
$cfg [' defaultlang '] = ' zh ';
This is the default language
Then we can manage the MySQL database through http://IP:port/mysqladmin/.
This article is from the "Operational Work Notes" blog, make sure to keep this source http://yyyummy.blog.51cto.com/8842100/1439303