phpMyAdmin的安装配置

2025-04-30 07:12:10

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

2、找到$cfg['Servers昕诖铳雌'][$i]['auth_type'] = 'config',改为$cfg['Servers'][$i]['auth_type'] = 'cookie';

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

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

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

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

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

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

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

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

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

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

声明:本网站引用、摘录或转载内容仅供网站访问者交流或参考,不代表本站立场,如存在版权或非法内容,请联系站长删除,联系邮箱:site.kefu@qq.com。
猜你喜欢