[問題] mysql一直無法連線
使用軟體 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
討論串 (同標題文章)
以下文章回應了本文:
完整討論串 (本文為第 1 之 2 篇):
Database 近期熱門文章
PTT數位生活區 即時熱門文章