Dogboys Posted May 16, 2006 Share Posted May 16, 2006 Warning: mysql_connect(): Unknown MySQL server host 'pugs_killmonster' (1) in /home3/pugs/public_html/connect.php on line 4 Could not connect. Ok my database is called killmonster but it made out pugs_killmonster 1<?php 2parse_str("$QUERY_STRING"); 3 4$db = mysql_connect("pugs_killmonster", "accountname", "password") 4or die("Could5 not connect."); 6if(!$db) etc... after more scripts... Ok i removed the account name and password for the database as you understand. I also tried just killmonster instead of pugs_killmonster. Help please. Also the numbers is the line for the scirpts. So obvisally its the fourth number. So im pretty sure its screwed up with the pugs_killmonster. Just not that it says unknown. So anyone help please XD? Link to comment https://forums.phpfreaks.com/topic/9751-mysql-mess-up/ Share on other sites More sharing options...
AndyB Posted May 16, 2006 Share Posted May 16, 2006 localhost is almost certainly the name you want for the MySQL server. pugs_killmonster is the database name which you'll need in a later statement after conncencting to the server. Link to comment https://forums.phpfreaks.com/topic/9751-mysql-mess-up/#findComment-36145 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.