For Programmers: Free Programming Magazines  


Home > Archive > PHP Pear > April 2006 > Re: [PEAR] DB: proper way to specify not standard port in DSN?









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Re: [PEAR] DB: proper way to specify not standard port in DSN?
Jesus M. Castagnetto

2006-04-12, 9:58 pm



--- l Burnerheimerton <lburnerheimerton@yahoo.com> wrote:

> I have a server where I added MySQL 5 to the mix and
> moved MySQL 4.1 to port 3305. I can get to the 4.1
> server and all it's databases on port 3305 using MySQL
> Control Center so I know it's working.
>
> Now my application is not working despite
> reconfiguring the DSN to:
>
> $dbconnect =&
> DB::connect('mysql//username:password@localhost:3305/dbName');


Unless you made a typo while transcribing. You are missing ":" in the DSN, it
should be: "mysql://user:pass@host:port/db"

ref: http://pear.php.net/manual/en/packa...b.intro-dsn.php

HTH

--
Jesus M. Castagnetto (jcastagnetto@yahoo.com)
Web site: http://www.castagnetto.org/
Research: http://metallo.scripps.edu/
PEAR stuff: http://pear.php.net/user/jmcastagnetto

________________________________________
__________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com