Re: mysql_select_db
| From: | Micah Stevens | Date: | Tue, 21 Oct 2008 19:12:25 +0000 |
| Subject: | Re: mysql_select_db | ||
| References: | 1 2 3 4 5 | Groups: | php.db |
| Request: | Send a blank email to php-db+get-45549@lists.php.net to get a copy of this message | ||
Okay, on the command line, then connect, and then select your database, what's the error message it gives?
-Micah
On 10/21/2008 11:06 AM, Stan wrote:
So ... if I enter "mysql -h mysqlServer -u stan -p" and then enter the password, I get connected without a problem ... I get the mysql client prompt. And the mysql_connect() statement in my code does not "die". But the mysql_select_db() statement in my code does "die". "Micah Stevens" <micah@raincross-tech.com> wrote in message news:48FDF2DE.60306@raincross-tech.com...Try it on the command line from the webserver: mysql -h hostname -u Stan -p Password See if that connect works. -Micah On 10/21/2008 04:26 AM, Stan wrote:The mysql_connect() works. It's the mysql_select_db() that's failing.Nope ... that wasn't it.