p2p.wrox.com Forums

p2p.wrox.com Forums (http://p2p.wrox.com/index.php)
-   PHP Databases (http://p2p.wrox.com/forumdisplay.php?f=97)
-   -   Database Connection (http://p2p.wrox.com/showthread.php?t=62978)

oneillg October 17th, 2007 02:29 PM

Database Connection
Hi all,
I am a C++ developer - new to PHP and MySql. Am using MySql on a Yahoo domain that supports MySql & PHP. Just trying the basics, but when I do the following:
// Connecting, selecting database
$link = mysql_connect('http://mydomain.com', 'myusername', 'mypassword'); ?>

it times out. Have tried substituting with the IP address, added port number - all with the same result. I expect (and hope) it is something easy.

Thanks for helping.


oneillg October 17th, 2007 04:48 PM

Well it took me the entire day, but I found the answer. It was sort of staring me in the face in the Yahoo docs, too. Yahoo needs the host name to be 'mysql'. Hope this saves someone else a little time.


All times are GMT -4. The time now is 03:07 AM.

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.