Install phpmyadmin In Ubuntu (deb package)

Source: Internet
Author: User
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?

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.