Home > Database > Mysql Tutorial > How to install and configure PHPmyadmin under Linux?

How to install and configure PHPmyadmin under Linux?

黄舟
Release: 2017-05-20 16:34:02
Original
2761 people have browsed it

How to install and configure PHPmyadmin under Linux?

Install phpMyAdmin under the Linux operating system, unzip the downloaded software package "phpMyAdmin-2.11.5-all -languages.rar" to the root directory of the configuration environment. For convenience Using, you can rename the unzipped folder to phpMyAdmin.

In the previous article "How to install and configure PHPmyadmin under Windows? 》We introduced the installation and configuration of PHPmyadmin under Windows, so today we will continue to introduce to you the installation and configuration of PHPmyadmin under Linux! ~

1. Install the phpMyAdmin graphical management tool

The operation in command mode is as follows:

# mv phpMyAdmin-2.11.5-all-languages.rar/var/ww/html  
# tar zvxf phpMyAdmin-2.11.5-all-languages.rar  
# mv phpMyAdmin-2.11.5-all-languages  phpMyAdmin
Copy after login

Use the above 3 commands to decompress the downloaded software package to the /var/www/html/ directory Click to complete the installation of the phpMyAdmin graphical management tool.

2. Configure the phpMyAdmin graphical management tool

Configuration is performed in the config.inc.php file in the phpMyAdmin directory, and change the configuration of the following parameters.

//将参数PmaAbsoluteUri的值设定为phpMyAdmin所处的位置:  
$cfg['PmaAbsoluteUri'] = 'http://localhost/phpMyAdmin';  
$cfg['blowfish_secret']='cookie';           //设定访问方式为Cookie  
$cfg['Servers'][$i]['host'] = 'localhost';      //设定MySQL所在的主机名或IP地址  
$cfg['Servers'][$i]['auth_type'] = 'http';      //设定进入phpMyAdmin管理MySQL的方式  
$cfg['Servers'][$i]['user'] = 'root';           //设定管理MySQL的账号  
$cfg['Servers'][$i]['password'] = 'root';       //设定管理MySQL的密码
Copy after login

After the parameter setting is completed, save the file and restart the Apache server~

Enter "localhost/PHPmyadmin/" in the address bar of the browser to open the PHPmyadmin graphical management main page. Database operations~

The above is the detailed content of How to install and configure PHPmyadmin under Linux?. For more information, please follow other related articles on the PHP Chinese website!

source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template