Details
-
Bug
-
Resolution: Fixed
-
Medium
-
4.0.3, 4.1.0beta1
-
None
-
Operating System: Mac OS X
PHP Version: 5.2.8
Database and version: mysql Ver 14.12 Distrib 5.0.45, for redhat-linux-gnu (x86_64)
Browser (and version):
Description
While developing with a remote DB (over SSH tunnel) I discovered that ezmysqli seems to ignore the Database Port setting alltogether. The tunneled DB works fine with ezmysql on port 3308, but fails with ezmysqli.
The log displays an error (trying to connect to the local database on the default port 3306):
[ Mar 08 2009 10:35:24 ] [127.0.0.1] eZMySQLiDB:
Connection error: Couldn't connect to database. Please try again later or inform the system administrator.
Access denied for user 'ez'@'localhost'
-----------------
This works:
[DatabaseSettings]
DatabaseImplementation=ezmysql
Server=127.0.0.1
Port=3309
User=ez
Password=bar
Database=foo
Charset=
Socket=disabled
-----------------
This does not:
[DatabaseSettings]
DatabaseImplementation=ezmysqli
Server=127.0.0.1
Port=3309
User=ez
Password=bar
Database=foo
Charset=
Socket=disabled
Steps to reproduce
1. Do a fresh install
2. Set database to use ezmysql
3. Change port to 3333
4. Refresh browser (an error appears, as expected)
5. Set database to use ezmysqli
6. Refresh browse (all ok, port setting is ignored)
Attachments
Issue Links
- relates to
-
EZP-14680 MySQLi does not work anymore
- Closed