Re: DB: non-standard port in DSN causing problems
| From: | Mark Wiesemann | Date: | Thu, 13 Apr 2006 16:33:34 +0000 |
| Subject: | Re: DB: non-standard port in DSN causing problems | ||
| References: | 1 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-23642@lists.php.net to get a copy of this message | ||
l Burnerheimerton wrote:
> I added PHP 5 to my development machine in its own
> directory with it's own ini. I moved PHP 4.3's ini
> from WINDOWS/ to its own install directory. I changed
> Apache's conf file and tested both PHP 4.3 and 5's
> phpinfo() - both displayed their respective PHP info
> properly.
>
> My dsn:
> 'mysql://userid:password@localhost:3305/dbname'
(1) Please ask question only once, especially when you already got an
answer.
(2) It looks as if the ':' after 'mysql' is missing here, in your first
post this was the case.
Let's see why:
> string(145) "Unable to include the
> DB/mysql//userid:password@localhost:3305/dbname.php´
Normally, DB would include something DB/mysql.php here. But as the ':'
is missing, the DBMS type can't be determined correctly and therefore,
DB tries to include a file with the name shown above, which obviously
must fail.
HTH,
Mark