今天我们来看看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

핫 AI 도구

Undresser.AI Undress
사실적인 누드 사진을 만들기 위한 AI 기반 앱

AI Clothes Remover
사진에서 옷을 제거하는 온라인 AI 도구입니다.

Undress AI Tool
무료로 이미지를 벗다

Clothoff.io
AI 옷 제거제

AI Hentai Generator
AI Hentai를 무료로 생성하십시오.

인기 기사

뜨거운 도구

ZendStudio 13.5.1 맥
강력한 PHP 통합 개발 환경

Atom Editor Mac 버전 다운로드
가장 인기 있는 오픈 소스 편집기

안전한 시험 브라우저
안전한 시험 브라우저는 온라인 시험을 안전하게 치르기 위한 보안 브라우저 환경입니다. 이 소프트웨어는 모든 컴퓨터를 안전한 워크스테이션으로 바꿔줍니다. 이는 모든 유틸리티에 대한 액세스를 제어하고 학생들이 승인되지 않은 리소스를 사용하는 것을 방지합니다.

SublimeText3 Linux 새 버전
SublimeText3 Linux 최신 버전

SublimeText3 중국어 버전
중국어 버전, 사용하기 매우 쉽습니다.
