mysql_connect question

From: Date: Mon, 17 Jul 2000 16:19:42 +0000
Subject: mysql_connect question
Groups: php.db 
Request: Send a blank email to php-db+get-1193@lists.php.net to get a copy of this message
I am having trouble with one web host I use getting connected to MySQL via PHP. I have used it successfully on other hosts, and I can connect to mysql through telnet on this host. The problem is that I can't seem to supply enough information in the mysql_connect command to get a connection to work. Here's what they've given me to connect via telnet (I have changed the IP address in the example): /opt/mysql.20/bin/mysql -h 201.221.231.100 -uYOUR-LOGINID -pYOUR-PASSWORD YOUR-LOGINID You can see that the name of the database is the same as the username. I have tried every combination of things possible (that I know of) in mysql_connect, but I can never get a connection - I think MySQL on this server wants the database name before it will let me connect. Any suggestions? Thanks! Chris --------------------------------------------- Chris Murtland Studio Moxie, LLC 336.773.1684 877.284.0462 fax/voicemail 62384610 ICQ

« previous php.db (#1193) next »