«

»

九月 08

CentOS_6.4-phpMyAdmin(Day4)

官方網站:http://www.phpmyadmin.net/

[root@localhost ~]# tar zxvf phpMyAdmin-版本-all-languages.tar.gz
[root@localhost ~]# rm –rf phpMyAdmin-版本-all-languages.tar.gz
[root@localhost ~]# mv phpMyAdmin-版本-all-languages/ /var/www/html/phpMyAdmin
[root@localhost ~]# cp /var/www/html/phpMyAdmin/libraries/config.default.php /var/www/html/phpMyAdmin/config.inc.php
[root@localhost ~]# vim /var/www/html/phpMyAdmin/config.inc.php
$cfg['PmaAbsoluteUri'] = “; –> $cfg['PmaAbsoluteUri'] = ‘http://IP/phpMyAdmin/’;
$cfg['Servers'][$i]['auth_type'] = ‘cookie’; –> $cfg['Servers'][$i]['auth_type'] = ‘http’;
$cfg['Servers'][$i]['controluser'] = 'username';  /* 資料表的權限帳號 */
$cfg['Servers'][$i]['controlpass'] = 'password';  /* 資料表的權限密碼 */ 
$cfg['Servers'][$i]['pmadb'] = “;–>$cfg['Servers'][$i]['pmadb'] = ‘phpmyadmin’;
$cfg['Servers'][$i]['bookmarktable'] = “;–>$cfg['Servers'][$i]['bookmarktable'] = ‘pma__bookmark’;
$cfg['Servers'][$i]['relation'] = “;–>$cfg['Servers'][$i]['relation'] = ‘pma__relation’;
$cfg['Servers'][$i]['table_info'] = “;–>$cfg['Servers'][$i]['table_info'] = ‘pma__table_info’;
$cfg['Servers'][$i]['table_coords'] = “;–>$cfg['Servers'][$i]['table_coords'] = ‘pma__table_coords’;
$cfg['Servers'][$i]['pdf_pages'] = “;–>$cfg['Servers'][$i]['pdf_pages'] = ‘pma__pdf_pages’;
$cfg['Servers'][$i]['column_info'] = “;–>$cfg['Servers'][$i]['column_info'] = ‘pma__column_info’;
$cfg['Servers'][$i]['history'] = “;–>$cfg['Servers'][$i]['history'] = ‘pma__history’;
$cfg['Servers'][$i]['designer_coords'] = “;–>$cfg['Servers'][$i]['designer_coords'] = ‘pma__designer_coords’;
$cfg['Servers'][$i]['recent'] = 'pma__recent';
$cfg['Servers'][$i]['table_uiprefs'] = 'pma__table_uiprefs';
$cfg['Servers'][$i]['tracking'] = “;–>$cfg['Servers'][$i]['tracking'] = ‘pma__tracking’;
$cfg['Servers'][$i]['userconfig'] = “;–>$cfg['Servers'][$i]['userconfig'] = ‘pma__userconfig’;
[root@localhost ~]# restorecon -Rv /var/www/html/phpMyAdmin

測試:http://IP/phpMyAdmin/,帳號 root,密碼

01

02

03

若phpMyAdmin是登入狀態,請重新登入

解決缺少 mcrypt 外掛。請檢查 PHP 設定

04

安裝epel 的套件來解決

[root@localhost ~]# rpm -ivh http://mirror01.idc.hinet.net/EPEL/6/x86_64/epel-release-6-8.noarch.rpm
[root@localhost ~]# yum install php-mcrypt
[root@localhost ~]# /etc/rc.d/init.d/httpd restart

若phpMyAdmin是登入狀態,請重新登入

Related Posts Plugin for WordPress, Blogger...

發表迴響

你的電子郵件位址並不會被公開。 必要欄位標記為 *

您可以使用這些 HTML 標籤和 attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>