[求助] Could not connect: Can't connect to MySQL server on 'IP' (4)
數(shù)據(jù)庫連接不上怎么辦?如題,我在php文件里用$con = mysql_connect("IP:3306", "root", "passwd");
網(wǎng)站上提示Could not connect: Can't connect to MySQL server on 'IP' (4),怎么回事?我還需要設(shè)置什么嗎?
這個(gè)問題找到了,是我端口沒開。
又出現(xiàn)這個(gè)問題:Warning: mysql_connect() [function.mysql-connect]: Lost connection to MySQL server at 'reading initial communication packet', system error: 113 in /www/web/default/app/news.php on line 5
這又是什么問題?