zoukankan      html  css  js  c++  java
  • Centos下安装配置phpmyadmin

     安装 phpMyAdmin管理数据库

    CentOS系统中启用RPMForge软件库安装phpMyAdmin:

    64位系统使用如下命令

    wget http://packages.sw.be/rpmforge-release/rpmforge-release-0.5.2-2.el5.rf.x86_64.rpm

    rpm -Uhv rpmforge-release-0.5.2-2.el5.rf.x86_64.rpm

    32位系统使用如下命令:

    wget http://packages.sw.be/rpmforge-release/rpmforge-release-0.5.2-2.el5.rf.i386.rpm

    rpm -Uhv rpmforge-release-0.5.2-2.el5.rf.i386.rpm

    现在可以安装phpMyAdmin如下命令:

    yum install phpmyadmin

    现在配置phpMyAdmin。需要改变Apache的配置,使phpMyAdmin不只是从本地主机连接(通过注释掉):

    vi /etc/httpd/conf.d/phpmyadmin.conf

    找到相似内容代码,作如下配置:

    #

    # Web application to manage MySQL

    #

    #

    # Order Deny,Allow

    # Deny from all

    # Allow from 127.0.0.1

    #

    Alias /phpmyadmin /usr/share/phpmyadmin

    Alias /phpMyAdmin /usr/share/phpmyadmin

    Alias /mysqladmin /usr/share/phpmyadmin

    下一步,我们改变在phpMyAdmin认证cookie为HTTP:

    vi /usr/share/phpmyadmin/config.inc.php

    找到相似内容代码,作如下配置:

    /* Authentication type */

    $cfg['Servers'][$i]['auth_type'] = ‘http’;

    重启Apache:

    /etc/init.d/httpd restart

    访问下phpMyAdmin,地址:http://192.168.0.100/phpmyadmin/

    相关软件连接:

    Apache: http://httpd.apache.org/

    PHP: http://www.php.net/

    MySQL: http://www.mysql.com/

    CentOS: http://www.centos.org/

    phpMyAdmin: http://www.phpmyadmin.net/

  • 相关阅读:
    cgi、wsgi、uwsgi 与 uWSGI
    docker入门
    python模块学习 -openpyxl
    linux考试题
    爬虫-scrapy的中间件
    scrapy框架简单学习
    爬虫中的selenium简单学习及案例
    2.python数据结构的性能分析
    1.数据结构&算法的引言+时间复杂度
    Jenkins—Master/Slave模式
  • 原文地址:https://www.cnblogs.com/chuanheng/p/2851211.html
Copyright © 2011-2022 走看看