What is The phpMyAdmin installation configuration? (For Debian systems )?? Step 1: install php5 and Apache2? Apt-getinstallphp5apt-getinstallApache2apt-getinstallphp5-mysql ?? Step 2: modify the configuration file? Modify the "DocumentRoo phpMyAdmin installation configuration"
PhpMyAdmin installation configuration
?
(For Debian systems )?
?
Step 1: install php5 and Apache2
?
Apt-get install php5
Apt-get install Apache2
Apt-get install php5-mysql
?
?
Step 2: modify the configuration file
?
Modify the "DocumentRoot" File: vi/etc/apache2/sites-available/default
?
Step 3: Download phpMyAdmin software
?
Upload a file? Under DocumentRoot, change to pma
?
?
?
Finally: Solutions to problems encountered during the process
?
?
1 )? The mysqli extension is missing. check the PHP configuration.
?
????? In php. ini (/etc/php5/apache2/php. ini), find extension_dir = "./" and change it to the directory where the file mysqli. so is located.
?
You also need to modify mysql. default_port, parameter, add port, and host
?
2 )? The mcrypt extension is missing. check the PHP configuration.
?
Apt-get install mcrypt * mhash *
?
After the installation is complete, restart apache2.
?
3) the logon page prompts: #1045 #2002 unable to log on to the MySQL server
?
(1) first, let's talk about phpmyadmin installation.
A. decompress the package to a directory on the website, such as mydb.
B. copy config. sample. inc. php to config. inc. php.
(2) #2002 unable to log on to the MySQL server
This error indicates that the database is not connected. Modify the config. inc. php file,
Set $ cfg ['servers'] [$ I] ['host'] = 'localhost ';
Change to $ cfg ['servers'] [$ I] ['host'] = '2017. 0.0.1 ';
(3) #1045 unable to log on to the MySQL server
This error occurs because the password or user name is incorrect. why is the password incorrect?
It turned out that we modified the host, but the password for the root@127.0.0.1 in the database is not set by default.
Modify the password of the root@127.0.0.1 in the database. execute the following command
Mysqladmin-h 127.0.0.1-u root password 'yourpassword'
?
? 4) #2013 unable to log on to the MySQL server
?
The connection to the mysql server is not enabled. (Delete unnecessary my. cnf files, such as/etc/mysql/my. cnf)
?
?
?
?
?