Still working on the move to WordPress… and need help specifying alternte port for MySQL

Hello all. My apologies for taking so long to return to blogging… it has been hard to find the time to make the move to WordPress; which BTW it seems keeping support to old permalinks will take some time, and I will do little by little.

In any case, now that I found some time to work on the move to WordPress, I have a problem that I can't connect to MySQL 5 instance, because it is listening on a different port… I need to find out how to specify an alternate port on my wp-config.php installation file.

Using define('DB_PORT', '3307') doesn't work… and using define('DB_HOST', 'localhost:3307') doesn't work either….

Any pointers to this is appreciated. Thanks in advance…

ceo

3 thoughts on “Still working on the move to WordPress… and need help specifying alternte port for MySQL”

  1. I am having exactly the same issue. I’ll let you know if I find a way around it, and I guess I’ll watch the rss to see if you do.

    Cheers

  2. So I actually got it to work on a fresh install using : xxx.xxx.xxx.xxx:port.

    It could be that the issue you’re having is because the mysql client will connect through a socket versus a port when the ‘localhost’ name is used. You might try 127.0.0.1:3307.

    Good luck.

  3. Hi Bryan. I figured out my problem, which had to do with version compatibility issues between the MySQL client and server.

Leave a Comment