久久久久久久视色,久久电影免费精品,中文亚洲欧美乱码在线观看,在线免费播放AV片

<center id="vfaef"><input id="vfaef"><table id="vfaef"></table></input></center>

    <p id="vfaef"><kbd id="vfaef"></kbd></p>

    
    
    <pre id="vfaef"><u id="vfaef"></u></pre>

      <thead id="vfaef"><input id="vfaef"></input></thead>

    1. 站長(zhǎng)資訊網(wǎng)
      最全最豐富的資訊網(wǎng)站

      如何使用yum安裝phpmyadmin

      如何使用yum安裝phpmyadmin

      在安裝好Apache、MySQL、PHP后,使用Remi源可以安裝phpMyAdmin最新版本。

      (1)安裝Remi源

      CentOS 6.5的epel及remi源。

      # rpm -Uvh http://ftp.iij.ad.jp/pub/linux/fedora/epel/6/x86_64/epel-release-6-8.noarch.rpm # rpm -Uvh http://rpms.famillecollet.com/enterprise/remi-release-6.rpm

      CentOS 7.0的源。

      # yum install epel-release # rpm -ivh http://rpms.famillecollet.com/enterprise/remi-release-7.rpm

      (2)安裝phpMyAdmin

      # yum install --enablerepo=remi --enablerepo=remi-php56 phpmyadmin

      (3)配置phpMyAdmin

      a.修改/etc/phpMyAdmin/config.inc.php:

      打開config.inc.php文件,進(jìn)行以下修改;

      // $cfg['Servers'][$i]['controluser'] = 'pma'; // $cfg['Servers'][$i]['controlpass'] = 'pmapass'; // $cfg['Servers'][$i]['pmadb'] = 'phpmyadmin'; // $cfg['Servers'][$i]['bookmarktable'] = 'pma_bookmark'; // $cfg['Servers'][$i]['relation'] = 'pma_relation'; // $cfg['Servers'][$i]['table_info'] = 'pma_table_info'; // $cfg['Servers'][$i]['table_coords'] = 'pma_table_coords'; // $cfg['Servers'][$i]['pdf_pages'] = 'pma_pdf_pages'; // $cfg['Servers'][$i]['column_info'] = 'pma_column_info'; // $cfg['Servers'][$i]['history'] = 'pma_history';  去掉每行前面的//

      $cfg['blowfish_secret'] = ''; 修改為$cfg['blowfish_secret'] = 'config';

      $cfg['Servers'][$i]['controluser'] ='pma';把pma修改為你的帳號(hào)

      $cfg['Servers'][$i]['controlpass'] ='pmapass'; 把pmapass設(shè)置為你的mysql登錄密碼

      $cfg['blowfish_secret'] =''; 添加短語(yǔ)密碼,可是任意字符串例如:$cfg['blowfish_secret'] = 'abcd'修改以后,以后登入phpMyAdmin就方便多了,但一定不要使用空密碼。

      b.修改/etc/httpd/conf.d/phpMyAdmin.conf

      本文件是phpMyAdmin的訪問控制文件,保證遠(yuǎn)程訪問。如下修改即可:

      <Directory /usr/share/phpMyAdmin/>    Order Deny,Allow    #Deny  from All    Allow from All </Directory>

      (4)用命令/etc/init.d/httpd restart重啟Apache。

      可能會(huì)出現(xiàn)以下問題:

      1、如果安裝php時(shí)沒有安裝php-mcrypt包,可能會(huì)出現(xiàn)錯(cuò)誤提示,這時(shí)只需將其安裝:yum -y install php-mcrypt

      2、phpMyAdmin訪問被拒絕

      將config.inc文件中$cfg['Servers'][$i]['auth_type'] = 'config';的config改為http,重啟Apache,訪問http://ip地址/phpMyAdmin/時(shí)將彈出一個(gè)對(duì)話框,可以輸入用戶名和密碼,來進(jìn)入phpMyAdmin。

      3、如果經(jīng)過以上兩個(gè)步驟的修改,依然提示你phpMyAdmin拒絕訪問,那么很可能是cookie惹的禍,打開瀏覽器,選擇工具,點(diǎn)擊internet選項(xiàng)然后選擇常規(guī),刪除cookie。再訪問http://ip地址/phpMyAdmin/

      (5)成功登錄phpMyAdmin后,若提示”Configuration of pmadb…錯(cuò)誤”,則進(jìn)行以下操作:

      a.命令行登錄mysql:mysql -uroot -p

      b.新建一個(gè)名稱為phpmyadmin的數(shù)據(jù)庫(kù):CREATE DATABASE phpmyadmin

      c.將PHPMyAdmin安裝目錄下sql目錄內(nèi)的create_tables.sql導(dǎo)入剛剛創(chuàng)建的數(shù)據(jù)庫(kù)phpmyadmin內(nèi):use phpmyadmin

      source /usr/share/phpMyAdmin/sql/create_tables.sql

      d.訪問phpMyAdmin,如果還是不行,重啟Apache后再試試。

      贊(0)
      分享到: 更多 (0)
      網(wǎng)站地圖   滬ICP備18035694號(hào)-2    滬公網(wǎng)安備31011702889846號(hào)