Re: [問題] mysql一直無法連線

看板Database作者 (想唱歌)時間18年前 (2008/01/10 04:10), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串2/2 (看更多)
問題自己解決了.... 原因好像是我們學校的爛server不支援sql存取的樣子 換了我同學學校的網頁空間就可以了 白白浪費4小時 超幹 ※ 引述《muah (想唱歌)》之銘言: : 使用軟體 mysql 5.0.37 : phpMyAdmin 2.10.2 : 我在學校server做了一個網頁要連mysql server : 一直出現 : Warning: : Access denied for user 'root'@'www.cc.ntut.edu.tw' (using password: NO) in : /user/student/t6318/t6318094/public_html/index.php on line 7 : Could not connect : 我寫了一個連線測試程式去試連mysql : 權限已經開到隨便都能登入的境界還是被拒絕 : ip位址也設不限 : 防火牆也關了 : 實在想不出有什麼方法可以讓我的網頁能連到sql server : 我的首頁檔名index.php : 內容只有 : <?php : $link = mysql_pconnect("我的server ip", "root", "密碼") : or die("Could not connect"); : print ("Connected successfully"); : ?> : 上面是書上看來的範例程式 : 也試過加上html的header格式也都不行 : 就這麼短短幾行花了我3小時 天哪 哪位好心大大教教我怎麼做吧~~~~~ : 明天就要報告 一直做不出來 好焦慮啊~~~~~><" -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 140.124.44.55
文章代碼(AID): #17XIehLN (Database)
文章代碼(AID): #17XIehLN (Database)