Home > Database > phpMyAdmin > How to install phpmyadmin4.8

How to install phpmyadmin4.8

爱喝马黛茶的安东尼
Release: 2019-12-10 13:23:16
Original
3028 people have browsed it

How to install phpmyadmin4.8

First go to the official website to download the phpMyAdmin source code:

https://www.phpmyadmin.net/downloads/

The file after downloading is phpMyAdmin-4.8.2-all-languages.tar.gz.

Extract it:

tar  xvf   phpMyAdmin-4.8.2-all-languages.tar.gz
Copy after login

View the decompressed file:

Then copy this folder to a path accessible to the apache server, and re- Name it phpmyadmin:

cp  -rf  phpMyAdmin-4.8.2-all-languages  /var/www/html/phpmyadmin
Copy after login

Since the root user is not supported to manage mysql by default, you need to configure an external user:

mysql -uroot -p
Enter password:输入密码 回车
create user 'xhy'@'localhost' identified by '123456';
Copy after login

Open all permissions of this user:

grant all privileges on *.* to 'xhy'@'localhost' identified by '123456';
Copy after login

Refresh permissions:

flush privileges;
Copy after login

Next modify the phpMyAdmin configuration file:

vi  /var/www/html/phpmyadmin/libraries/config.default.php
Copy after login

Modify the following content:

$cfg['PmaAbsoluteUri'] = 'http://localhost/phpmyadmin';
$cfg['Servers'][$i]['user'] = 'xhy';
$cfg['Servers'][$i]['password'] = '123456';
Copy after login

Save and exit!

Open the browser and enter the URL: http://localhost/phpmyadmin

Enter the user name: xhy, password: 123456

You can see the interface where you have successfully logged in:

How to install phpmyadmin4.8

PHP Chinese website has a large number of free phpmyadmin introductory tutorials, everyone is welcome to learn!

The above is the detailed content of How to install phpmyadmin4.8. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
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