Mac 使用phpMyAdmin

1 把phpMyAdmin-4.6.5.2-all-languages.zip文件解压到“/Library/WebServer/Documents/”中,并更名为phpmyadmin。php

2 复制“/Library/WebServer/Documents/phpmyadmin/”中的config.sample.inc.php,并命名为config.inc.php服务器

3 编辑config.inc.php,修改以下:加密

用于Cookie加密,随意的长字符串
$cfg['blowfish_secret'] = 'a8b7c6d';

当phpMyAdmin中出现“#2002 没法登陆 MySQL 服务器(#2002 Cannot log in to the MySQL server)”时,
请把localhost改为127.0.0.1就ok了,
这是由于MySQL守护程序作了IP绑定(bind-address =127.0.0.1)形成的
$cfg['Servers'][$i]['host'] = 'localhost';

把false改为true,这样就能够访问无密码的MySQL了,
即便MySQL设置了密码也能够这样设置,而后登陆phpMyAdmin时输入密码
$cfg['Servers'][$i]['AllowNoPassword'] = false;
相关文章
相关标签/搜索