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 .* to 'pma'@'localhost';
将/var/www/phpmyadmin-3.2.5-all-languages/scripts/create_tables.sql导入到数据库。
修改config.inc.php,去掉所有配置项的双斜杠注释