今天我們來看看
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
http://www.bkjia.com/PHPjc/632474.htmlwww.bkjia.comtruehttp://www.bkjia.com/PHPjc/632474.htmlTechArticle今天我們來看看 phpmyadmin 配置教程 吧,也可以叫做 phpmyadmin 安裝 吧,安裝我就不說了,你直接到網上下載一個 phpmyadmin 包解壓到你的網站目錄...