We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 11135
    • 3 Posts
    Hello,

    I’m trying to install new BETA-5 on my local server (Windows 2003 SP2, Microsoft-IIS/6.0, MySQL 5.1.39-community, PHP 5.2.6 ISAPI),
    but I have a problem, because port of MySQL server is 3307. I’m trying to set localhost:3307 on "Database host" setup field, but get this error:




    Any ideas ??
    Thanks!!
      • 32699 ☆ A M B ☆
      • 427 Posts
      I have never tried this. I just know that the PDO supports it:

      $dsn = 'mysql:dbname=testdb;host=127.0.0.1;port=3333';


      Its actually an additional part of the constructor. If your MySql already knows which port to listen on PDO loads on top of that. I suspect you may not have to add the port as you are not accessing it via a tcp connection but on the local computer. Inside of the my.cnf you set the port for the server. You typically only need the port for remote access.

      Have you tried installing it without listing the port?

      And something in the back of my brain is yelling to me that there is an advanced database option on the install, but I deal with way too much software to be certain.

      Another alternative: is move mssql away from 3306 (if it is using it) and put mysql back there.


        Get your copy of MODX Revolution Building the Web Your Way http://www.sanitypress.com/books/modx-revolution-building-the-web-your-way.html

        Check out my MODX || xPDO resources here: http://www.shawnwilkerson.com
        • 22303 MODX Staff
        • 10,725 Posts
        Correct, the local socket file should be configured with the port; this does not need to be specified in the setup. However, it would be nice to be able to specify this for remote configurations that may have to use TCP/IP on non-standard ports.