phpMyAdmin的安装配置

找到$cfg['blowfish_secret'] = '',将其值改为你自己想要的任意字符,如$cfg['blowfish_secret'] = 'owndownd';

找到$cfg['Servers'][$i]['auth_type'] = 'config',改为$cfg['Servers'][$i]['auth_type'] = 'cookie';

找到$cfg['DefaultLang'] = 'en-iso-8859-1',改为$cfg['DefaultLang'] = 'zh-utf-8';

找到$cfg['DefaultCharset'] = 'iso-8859-1',改为$cfg['DefaultCharset'] = 'zh-utf-8';

$cfg['PmaAbsoluteUri'] = 'http://您的域名/phpmyadmin/'; (phpmyadmin的URL)

$cfg['Servers'][$i]['host'] = '数据库主机地址'; 本机localhost

$cfg['Servers'][$i]['user'] = '站点ID'; root

$cfg['Servers'][$i]['password'] = '密码'; zoneidc

$cfg['Servers'][$i]['only_db'] = '数据库名(站点ID)'; zoneidc

修改完成后,保存config.inc.php文件;修改配置文件后,将phpmyadmin目录及其目录下的所有文件,通过ftp上传到客户网站的站点上

通过以上设置,就可以通过http://localhost/phpmyadmin/访问到phpMyAdmin登录界面了;

使用root账号登录,密码为空。登录后选择更改密码,输入自己需要的密码,点击“更改”按钮,即完成phpMyAdmin最后配置。现在已经可以通过phpMyAdmin来管理MySQL

原文地址:https://www.cnblogs.com/lzj87980239/p/3612096.html