phpmyadminn装配

WBOY
發布: 2016-06-13 13:13:12
原創
782 人瀏覽過

phpmyadminn安装
(1)下载安装
打开http://www.phpmyadmin.net
下载phpMyAdmin-3.2.5-all-languages.zip
解压到网站路径内如/var/www
(2)基本配置
打开路径/var/www/phpMyAdmin-3.2.5-all-languages
备份config.sample.inc.php并改名为config.inc.php
修改config.inc.php
$cfg['blowfish_secret'] = '任意字符串'
根据情况修改其他配置项。
(3)高级配置
用以下sql语句创建一个新用户

GRANT USAGE ON mysql.* TO 'pma'@'localhost' IDENTIFIED BY 'pmapass';
GRANT SELECT (
    Host, User, Select_priv, Insert_priv, Update_priv, Delete_priv,
    Create_priv, Drop_priv, Reload_priv, Shutdown_priv, Process_priv,
    File_priv, Grant_priv, References_priv, Index_priv, Alter_priv,
    Show_db_priv, Super_priv, Create_tmp_table_priv, Lock_tables_priv,
    Execute_priv, Repl_slave_priv, Repl_client_priv
    ) ON mysql.user TO 'pma'@'localhost';
GRANT SELECT ON mysql.db TO 'pma'@'localhost';
GRANT SELECT ON mysql.host TO 'pma'@'localhost';
GRANT SELECT (Host, Db, User, Table_name, Table_priv, Column_priv)
    ON mysql.tables_priv TO 'pma'@'localhost';
GRANT SELECT, INSERT, UPDATE, DELETE ON <pma_db>.* TO 'pma'@'localhost';
登入後複製

将/var/www/phpMyAdmin-3.2.5-all-languages/scripts/create_tables.sql导入到数据库。
修改config.inc.php,去掉所有配置项的双斜杠注释

相關標籤:
來源:php.cn
本網站聲明
本文內容由網友自願投稿,版權歸原作者所有。本站不承擔相應的法律責任。如發現涉嫌抄襲或侵權的內容,請聯絡admin@php.cn
熱門教學
更多>
最新下載
更多>
網站特效
網站源碼
網站素材
前端模板