如何修改上线网站,专业嵌入式软件开发,热词搜索排行榜,江苏建站首先在根目录找到config.sample.inc.php复制一份文件名改为config.inc.php#xff08;如果已经存在 config.inc.php 文件#xff0c;则直接修改该文件即可#xff09;。打开config.inc.php 找到 $cfg[Servers][$i][auth_type]#xff0c;将 1 $cfg[Servers][$i][auth_type…首先在根目录找到config.sample.inc.php复制一份文件名改为config.inc.php如果已经存在 config.inc.php 文件则直接修改该文件即可。打开config.inc.php 找到 $cfg[Servers][$i][auth_type]将 1 $cfg[Servers][$i][auth_type] cookie;
改成 1 $cfg[Servers][$i][auth_type] config;
然后在下面追加如下代码 1 2 $cfg[Servers][$i][user] root; // 设置的mysql用户名 $cfg[Servers][$i][password] 123456; // 设置的mysql密码
取消phpMyAdmin自动登录
只需把 1 $cfg[Servers][$i][auth_type] config;
改成 1 $cfg[Servers][$i][auth_type] cookie;
保存即可。
$cfg[Servers][$i][auth_type] 有三个待选项值即 cookie、http、config。用的比较多的是 cookie与config。当在正式环境时用 cookie要求用户必须输入正确的用户名与密码而在本地测试服务器时一般用 config省得session失效后又得输入用户名与密码以节省开发时间。