Re: mysql_select_db

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxxxxxxxxxx> wrote in message news:48FDF2DE.60306@xxxxxxxxxxxxxxxxxxxxx
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:
Nope ... that wasn't it.

The mysql_connect() works.

It's the mysql_select_db() that's failing.





--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [PHP Users]     [Postgresql Discussion]     [Kernel Newbies]     [Postgresql]     [Yosemite News]

  Powered by Linux