Re: MySql
| From: | Marcelo Gulin | Date: | Wed, 03 Jan 2001 17:54:31 +0000 |
| Subject: | Re: MySql | ||
| References: | 1 | Groups: | php.db |
| Request: | Send a blank email to php-db+get-5573@lists.php.net to get a copy of this message | ||
Hi Jayme!
you must use..
<?
$opendb = mysql_pconnect( "your_host_address:port","your_user",
"your_password" );
$selectdb = mysql_select_db("your_database");
?>
hope it helps you
Marcelo Gulin
Jayme Derr escribió:
>
> I do not understand how to connect to a MySql
> database. The MySql database is on a separate
> machine. I have used telnet to reach the db, so I
> know it is there. Problem. I have a user name and
> password to get on the machine, and then I type a
> command in to actually see the MySql db. Before I see
> the mysql prompt, I have to type in a separate
> password. What command in PHP should I use? I am
> assuming I use mysql_connect, but isn't this just to
> connect to the machine? How do I connect to the
> database with the different password?
>
> Thanks,
> Jayme Derr
>
> __________________________________________________
> Do You Yahoo!?
> Yahoo! Photos - Share your holiday photos online!
> http://photos.yahoo.com/
>
> --
> PHP Database Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: php-db-unsubscribe@lists.php.net
> For additional commands, e-mail: php-db-help@lists.php.net
> To contact the list administrators, e-mail: php-list-admin@lists.php.net