Re: DB: proper way to specify not standard port in DSN?
| From: | Jesus M. Castagnetto | Date: | Thu, 13 Apr 2006 03:48:42 +0000 |
| Subject: | Re: DB: proper way to specify not standard port in DSN? | ||
| References: | 1 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-23638@lists.php.net to get a copy of this message | ||
--- 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/package.database.db.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