Date |Thu, 9 Aug 2001 10:36:59 +0800
>From |"Steve Doig" <[EMAIL PROTECTED]>

Hello!


SD> $link = mysql_connect("mySQL_test", "mysql_login", "mysql_password")
SD> or die ("Could not connect");
SD> print ("Connected successfully");
SD> mysql_select_db ("test")
SD> or die ("Could not select database");
I think you need to use mysql_connect("localhost", "mysql_login", "mysql_password");
cause mySQL_test doesn't look like normal DNS record.

SD> In my ODBC sources I have a user DSN of
SD> name: mySQLtest
SD> driver: mySQL
SD> mySQL host: 127.0.0.1
SD> mySQL database name: test
If you use mysql_* function you do it
not through ODBS but use direct mysql connection.


___________________________________________________________________
For technical support contracts, visit https://order.mysql.com/
This email is sponsored by SWSoft, http://www.asplinux.ru/
   __  ___     ___ ____  __
  /  |/  /_ __/ __/ __ \/ /    Grigory Bakunov <[EMAIL PROTECTED]>
 / /|_/ / // /\ \/ /_/ / /__   MySQL AB / SWSoft
/_/  /_/\_, /___/\___\_\___/
       <___/   www.mysql.com


---------------------------------------------------------------------
Before posting, please check:
   http://www.mysql.com/manual.php   (the manual)
   http://lists.mysql.com/           (the list archive)

To request this thread, e-mail <[EMAIL PROTECTED]>
To unsubscribe, e-mail <[EMAIL PROTECTED]>
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php

Reply via email to