«

»

二月 22

CentOS-phpMyAdmin

官方網站: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.tar.gz /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]['pmadb'] = '';-->$cfg['Servers'][$i]['pmadb'] = 'phpmyadmin';
$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]['bookmarktable'] = '';-->$cfg['Servers'][$i]['bookmarktable'] = 'pma_bookmark';
$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]['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是登入狀態,請重新登入

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>