Jump to content


Photo

mysql mess up


  • Please log in to reply
1 reply to this topic

#1 Dogboys

Dogboys
  • Members
  • PipPipPip
  • Advanced Member
  • 44 posts

Posted 16 May 2006 - 02:53 AM

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?

#2 AndyB

AndyB
  • Staff Alumni
  • Advanced Member
  • 5,465 posts
  • LocationToronto

Posted 16 May 2006 - 03:15 AM

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.
Legend has it that reading the manual never killed anyone.
My site




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users