Installing phpmyadmin in ubuntu is actually very simple. sudoapt-getinstallphpmyadmin is installed in ubuntu. However, after installing phpmyadmin, it is easy to make mistakes. at first, I kept modifying & nbsp; install phpmyadmin in/usr/share/phpmyadmin ubuntu
Installing phpmyadmin in ubuntu is simple.
sudo apt-get install phpmyadmin
However, the configuration after installation makes it easy to make mistakes.
At first, I was modifying/usr/share/phpmyadmin/config. inc. php.
However, no. the correct location is in/etc/phpmyadmin/config. inc. php, and it includes/var/lib/phpmyadmin/config. inc. php.
The file to be modified should be/var/lib/phpmyadmin/config. inc. php.
In fact, we do not need to manually modify config. inc. php.
We can configure http: // localhost/phpmyadmin/setup/like this/
There are two commands to help us
* Pma-configure
* Pma-secure
The two commands have no parameters. the function is opposite. one is to enable the configuration switch, the other is to disable the configuration, and modification is prohibited.
When we need to modify, run pma-configure. after the modification, run pma-secure.
Of course, both commands require sudo permissions.
The overall process is as follows:
Install phpmyadmin-> pma-configure->/phpmyadmin/setup-> pma-secure
Of course, we need to place phpmyadmin under apache or nginx.
sudo ln -s /usr/share/phpmyadmin /var/www/
In fact, the above steps are redundant.
Check/etc/phpmyadmin/apache. conf and you will understand it.
Alias /phpmyadmin /usr/share/phpmyadmin
There are other configurations.
----------------------
So much content, you can see from here
dpkg -L phpmyadmin
In this way, you can see what files are mounted to the hard disk by phpmyadmin.