phpMyAdmin

[root@localhost ~]# yum install mariadb-server phpMyAdmin httpd -y

[root@localhost ~]# systemctl start mariadb

[root@localhost ~]# mysql_secure_installation
Enter current password for root (enter for none):
Set root password? [Y/n] y
New password: [PASSWORD]
Re-enter new password: [PASSWORD]
Remove anonymous users? [Y/n] y
Disallow root login remotely? [Y/n] n
Remove test database and access to it? [Y/n] y
Reload privilege tables now? [Y/n] y
 
[root@localhost ~]# vim /etc/httpd/conf.d/phpMyAdmin.conf
各 Directory 字段中添加: Require all granted
例如:
[root@localhost ~]# chown -R apache:apache /usr/share/phpMyAdmin

[root@localhost ~]# systemctl start httpd

之后浏览器访问 http://<ip-addr>/phpMyAdmin
使用 root 账户登录,登录密码为前面执行 mysql_secure_installation 命令时输入的密码。
登陆后可添加普通账户并为普通账户设置密码。

posted @ 2018-11-16 10:22  乡村野兔  阅读(235)  评论(0编辑  收藏  举报