首页 > 后端开发 > php教程 > phpmyadminn装配

phpmyadminn装配

WBOY
发布: 2016-06-13 10:48:54
原创
962 人浏览过

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
热门教程
更多>
最新下载
更多>
网站特效
网站源码
网站素材
前端模板