今天我们来看看phpmyadmin 配置教程吧,也可以叫做phpmyadmin 安装吧,安装我就不说了,你直接到网上下载一个phpmyadmin包解压到你的站点目录,就行了.下面我们来看个简单的例子吧.
安装目录:/admin/
好了我们现在打开我们刚才解压的文件夹找到config.sample.inc.php 把它改名为config.inc.php下面我们就打开这个文件.
找到
$cfg['PmaAbsoluteUri'] = '';
$cfg['EexecTimeLimit'] = ;
我们把$cfg['PamAbsolteUri]设置为你的目录我的是/admin/目录,$cfg['EexecTimeLimit'] 我设置为10000
立即学习“PHP免费学习笔记(深入)”;
$cfg['PmaAbsoluteUri'] = '/admin/''';
$cfg['EexecTimeLimit'] = 10000;
再找到$cfg['blowfish_secret'] = '';
$cfg['blowfish_secret'] = 'cookie';
找到$cfg['Servers'][$i]['host'] = '' // MySQL hostname or IP address
m18麦考林整站 for Ecshop v2.7.3 安装方法: 1,解压rar包上传到网站根目录 2,导入sql数据库文件,到你的数据库里,可以phpmyadmin等软件 3,修改data里config.php里面的数据库 用户名 密码等信息 为你自己的数据库信息 4,安装完毕之后的后台用户名密码为: 后台地址:域名/admin 用户名:admin 密码:admin123 模板使用教程: htt
这里是设置连接mysql主机的,可以是主机也可以是IP地址.
$cfg['Servers'][$i]['host'] = 'localhost'; // MySQL hostname or IP address
下面再找到.
$cfg['Servers'][$i]['auth_type'] = ''; // Authentication method (valid choices: config, http, HTTP, signon or cookie)
$cfg['Servers'][$i]['user'] = ''; // MySQL user
$cfg['Servers'][$i]['password'] = '';
上面三种什么意思我就不多说了各位看看我的配置吧.
$cfg['Servers'][$i]['auth_type'] = 'cookie'; // Authentication method (valid choices: config, http, HTTP, signon or cookie)
$cfg['Servers'][$i]['user'] = 'p123456'; // 你的mysql用户
$cfg['Servers'][$i]['password'] = '******'; 这是你的mysql密码
好了现在把cofing.inc.php上传到服务器就OK了.好了写完了
1045 Access denied for user 'root'@'localhost' (using password: YES)
1045 Access denied for user 'root'@'localhost' (using password: YES)
原因是:
你的phpmyadmin设置了密码,但是你的密码与mysql server用户名与密码不致我造成的.
#1045 - Access denied for user 'root'@'localhost' (using password: NO)
本站原创转载请注明出处吧. www.111cn.cn










