[請益] config.inc.php的設定

看板PHP作者 (熊貓奶茶)時間15年前 (2009/03/14 23:42), 編輯推噓2(2012)
留言14則, 3人參與, 最新討論串1/1
不論我怎麼試都沒辦法登入phpMyadmin 可以麻煩各位先進幫我看一下嗎!? 謝謝! 環境為: IIS PHP 5.2.9 phpMyadmin 3.1.3 MySQL 5.0.77 以下是我的 config.inc.php *----------------------------------------------------------------------------- <?php /* * Generated configuration file * Generated by: phpMyAdmin 3.1.3 setup script by Piotr Przybylski <piotrprz@gmail.com> * Date: Sat, 14 Mar 2009 23:05:49 +0800 */ $cfg['PmaAbsoluteUri'] = 'http://localhost/phpMyAdmin/'; /* Servers configuration */ $i = 0; /* Server: mysql [1] */ $i++; $cfg['Servers'][$i]['verbose'] = 'mysql'; $cfg['Servers'][$i]['host'] = 'localhost'; $cfg['Servers'][$i]['port'] = ''; $cfg['Servers'][$i]['socket'] = ''; $cfg['Servers'][$i]['ssl'] = true; $cfg['Servers'][$i]['connect_type'] = 'tcp'; $cfg['Servers'][$i]['extension'] = 'mysql'; $cfg['Servers'][$i]['auth_type'] = 'http'; $cfg['Servers'][$i]['user'] = 'root'; $cfg['Servers'][$i]['password'] = ''; /* End of servers configuration */ $cfg['DefaultLang'] = 'zhtw-utf-8'; $cfg['ServerDefault'] = 1; $cfg['UploadDir'] = ''; $cfg['SaveDir'] = ''; ?> -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 123.240.12.57

03/15 00:01, , 1F
出現什麼問題/錯誤訊息?
03/15 00:01, 1F

03/15 00:14, , 2F
Access denied for user ''@'localhost' to database
03/15 00:14, 2F

03/15 00:15, , 3F
IIS的HTTP驗證預設是整合Windows驗證 所以你輸入
03/15 00:15, 3F

03/15 00:16, , 4F
MySQL帳密自然進不去 建議改成 cookie 驗證
03/15 00:16, 4F

03/15 00:16, , 5F
感覺上像是沒有登入, 也沒有權限存取資料庫
03/15 00:16, 5F

03/15 00:16, , 6F
如果一定要用HTTP 請參考http://tinyurl.com/7ncpb
03/15 00:16, 6F

03/15 00:18, , 7F
03/15 00:18, 7F

03/15 00:21, , 8F
請問如果改成cookie驗證, 還有什麼地方要注意的?
03/15 00:21, 8F

03/15 00:22, , 9F
改了後 "無法讀取 mcrypt 模組,<br />請檢查PHP設定"
03/15 00:22, 9F

03/15 00:32, , 10F
php.ini => extension=php_mcrypt.dll
03/15 00:32, 10F

03/15 00:41, , 11F
改了, 也有把libmcrypt.dll丟到windows & system32裡
03/15 00:41, 11F

03/15 00:41, , 12F
但結果還是一樣 orz
03/15 00:41, 12F

03/15 00:47, , 13F
再請問一個問題, 我應該要把config.inc放在哪個目錄?
03/15 00:47, 13F

03/15 00:47, , 14F
看起來好像是phpMyadmin又好像是Config裡
03/15 00:47, 14F
文章代碼(AID): #19kz1guE (PHP)