Home  >  Article  >  Database  >  Fedora下phpMyAdmin的安装和配置

Fedora下phpMyAdmin的安装和配置

WBOY
WBOYOriginal
2016-06-07 16:59:021025browse

phpMyAdmin主要用于以web界面形式管理mysql。其在Fedora下的安装方法如下:1. yum install phpMyAdmin利用yum安装的phpMyAdmin,

phpMyAdmin主要用于以web界面形式管理mysql。其在Fedora下的安装方法如下:

1. yum install phpMyAdmin

利用yum安装的phpMyAdmin,其路径如下:

安装路径:/usr/share/phpMyAdmin

Apache下的配置文件:/etc/httpd/conf.d/phpMyAdmin.conf

2.phpMyAdmin配置:
  修改phpMyAdmin配置文件:我的配置文件为config.inc.php,在/etc/phpMyAdmin下
 
  $cfg['Servers'][$i]['controluser']   = 'root';   // MySQL的根用户                                                             

  $cfg['Servers'][$i]['controlpass']   = '123';    // 你的MySQL的根用户密码
                                              
  $cfg['Servers'][$i]['user']          = '';       // MySQL用户名
     
  $cfg['Servers'][$i]['password']      = '';    // 你的MySQL的用户对应的密码
 
  其他的配置选项根据需要设置,,使用默认也可以。

3.httpd服务配置:phpMyAdmin是需要借助于httpd服务的,这一步很重要。

  a.先找到phpMyAdmin的安装路径,我的Fedora13 安装在/usr/share/phpMyAdmin下。

  b.注意你的 httpd 服务已经开启,若未开启则使用以下命令:
  sudo chkconfig --level 345 httpd on // 设置开机启动服务
  sudo service httpd start // 立即启动服务
  这时可以测试一下,在浏览器中输入 ,会出现一个测试页,说明成功。

  c.将phpMyAdmin的安装路径连接到httpd服务目录下:
  sudo ln -s /usr/share/phpMyAdmin /var/www/phpMyAdmin
  在浏览器中输入 ,会出现phpMyAdmin的登录界面,说明成功。

linux

Statement:
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