加入收藏 | 设为首页 | 会员中心 | 我要投稿 衡阳站长网 (https://www.0734zz.cn/)- 数据集成、设备管理、备份、数据加密、智能搜索!
当前位置: 首页 > 服务器 > 搭建环境 > Linux > 正文

centos7.2安装phpmyadmin

发布时间:2021-01-17 06:01:38 所属栏目:Linux 来源:网络整理
导读:首先服务器要有web 环境 yum install phpmyadmin 有时候会安装不成功,提示没有可用软件包,则需要安装Remi源? ? ?修改/etc/http.conf/conf.d/phpMyadmin.conf ['PmaAbsoluteUri']='http://localhost/phpmyadmin' span style="color: #800080;"$cfg ['Server

首先服务器要有web 环境

yum install phpmyadmin

有时候会安装不成功,提示没有可用软件包,则需要安装Remi源?

?

?修改/etc/http.conf/conf.d/phpMyadmin.conf

<span style="color: #800080;">$cfg['Servers'][<span style="color: #800080;">$i]['host'] = 'localhost'<span style="color: #000000;">;
<span style="color: #008000;">//<span style="color: #008000;">设定MySQL所在的主机名或IP地址。如127.0.0.1这步很重要

<span style="color: #800080;">$cfg['Servers'][<span style="color: #800080;">$i]['auth_type'] = 'cookie'<span style="color: #000000;">;
<span style="color: #008000;">//<span style="color: #008000;"> 设定进入phpMyAdmin管理MySQL的方式,共有三个选项:config、http、cookie。config是按配置文件登录,为默认方式, 无需任何确认;http是使用HTTP登录管理,在Apache模块安装下才能支持;cookie是最通用的管理方式。后两种方式的用户名和密码都是直接到数据库中验证。

<span style="color: #800080;">$cfg['Servers'][<span style="color: #800080;">$i]['user'] = 'root'<span style="color: #000000;"> ;
<span style="color: #008000;">//<span style="color: #008000;">设定管理MySQL的账号。

<span style="color: #800080;">$cfg['Servers'][<span style="color: #800080;">$i]['password'] = ''<span style="color: #000000;"> ;
<span style="color: #008000;">//<span style="color: #008000;">设定管理MySQL的密码。
<span style="color: #000000;">
要是你想用空密码
把配置中的<span style="color: #800080;">$cfg['Servers'][<span style="color: #800080;">$i]['AllowNoPassword'] = <span style="color: #0000ff;">false<span style="color: #000000;">;
改成 <span style="color: #800080;">$cfg['Servers'][<span style="color: #800080;">$i]['AllowNoPassword'] = <span style="color: #0000ff;">true;

,:访问http://ip地址/phpMyAdmin/

Slackware Linux命令:
  /etc/rc.d/rc.<span style="color: #000000;">httpd restart

ubuntu、Debian 系统命令:

  /etc/init.d/<span style="color: #000000;">apache2 restart

Fedora 、Redhat、CentOS系统重启Apache命令:

  /etc/init.d/<span style="color: #000000;">httpd restart
  或
  service httpd restart(CentOS 成功)

?

(编辑:衡阳站长网)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    热点阅读