The commands involved below are all executed by the root user in Ubuntu. If you are not using the root user, add the sudo command on your own. 1. Since the titles are all in deb mode, so it must rely on the Internet software library: sudoapt-getinstallphpmyadmin2, after installation, the system will add such a few directories:/etc/phpmyadmin/usr/share/phpmyadmin3, it is reasonable to say, at this time
The following commands are executed by the root user in Ubuntu. If you are not using the root user, add the sudo command on your own.
1. Since all titles are in the deb mode, it must rely on the Internet software library:
Sudo apt-get install phpmyadmin
2. After the installation is complete, the following directories will be added to the system:
/Etc/phpmyadmin
/Usr/share/phpmyadmin
3. In this case, you can browse http: // localhost/phpmyadmin in the browser (for example, firefox) and log on as an administrator (for example, log on as the root account) you can use it normally:
4. But, damn it, I found the following error during login:
#2002-No response from the server (or the local MySQL server's socket is not correctly configured)
5. In a hurry, I know which configuration file has an error in parameter configuration:
Edit/etc/phpmyadmin/config. inc. php. The original line --
$ Cfg ['servers'] [$ I] ['host'] = 'localhost ';
Modify to this --
$ Cfg ['servers'] [$ I] ['host'] = '2017. 0.0.1 ′;
It can be found that this value is closely related to the following lines in the mysql configuration file/etc/mysql/my. cnf --
Bind-address = 127.0.0.1
6. Try to log on with the root user. If you are lucky enough, you can see the cute interface that has been around for a long time (in rose's words, it is "go nuts ):
7. If you still cannot see the page above, can you tell me what's wrong with you?