Uploaded image for project: 'eZ Publish / Platform'
  1. eZ Publish / Platform
  2. EZP-14574

eZMySQLiDB ignores Port setting?

    XMLWordPrintable

Details

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Medium Medium
    • 4.1.1, 4.2.0alpha1
    • 4.0.3, 4.1.0beta1
    • Database related
    • 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

        Activity

          People

            72f8acac-185f-4a54-9470-a7473f50daab@accounts.ibexa.co Gaetano Giunta
            janit janit
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: