Home >php教程 >php手册 >phpmyadmin 配置方法与安装教程

phpmyadmin 配置方法与安装教程

WBOY
WBOYOriginal
2016-06-13 09:53:46834browse

今天我们来看看phpmyadmin 配置教程吧,也可以叫做phpmyadmin 安装吧,安装我就不说了,你直接到网上下载一个phpmyadmin包解压到你的站点目录,就行了.下面我们来看个简单的例子吧.

安装目录:/admin/

好了我们现在打开我们刚才解压的文件夹找到config.sample.inc.php 把它改名为config.inc.php下面我们就打开这个文件.

找到

$cfg['PmaAbsoluteUri'] = '';
$cfg['EexecTimeLimit'] = ;

我们把$cfg['PamAbsolteUri]设置为你的目录我的是/admin/目录,$cfg['EexecTimeLimit'] 我设置为10000

$cfg['PmaAbsoluteUri'] = '/admin/''';
$cfg['EexecTimeLimit'] = 10000;

再找到$cfg['blowfish_secret'] = '';

$cfg['blowfish_secret'] = 'cookie';

找到$cfg['Servers'][$i]['host']          = '' // MySQL hostname or IP address

这里是设置连接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  

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn