Hello,

I tried to connect to my localhost using onether port than 3306. (mysql 4.0.8). I changed the port number to 3307 in my.ini config file, using the mysqladmin program(windows). the program saved the new port number(I checked it, opening manually the my.ini file), but the script didn't want to connect to the database.
I got an error message:

Unable to connect to localhost ....

Which could be a solution for this problem? Should I use the Mysql-Front client program to change the port number?

thanks in advance!

    Yesterday database, today newbie, tomorrow .... ?
    Please don't continue... 🙁

    However you note the "support for ": port" was added in PHP 3.0B4. " <- from manual.

    And you have to look if some firewall's option closes port 3307.

    And i think is not wrong get myodbc or mysql-front to verify if you can connect to this port...

    see you

      "And you have to look if some firewall's option closes port 3307. "

      What does it mean? May I use some other port, not the 3307?

      The idea was if I can use any other ports than the "old" 3306. Is it possible?

        Yes, this can be done.
        But if you have your server behind some firewall may be the unknow port (3307 may be unknow...) are closed by it.

        For example if you work on windows xp, or with iis...

        If you get mysql-front or myodbc you can easily look if all is setted up fine or not, just setting it.

          no I don't think, because I also tried this example on my laptop, which has no firewall. anyway, I will check with mysql-front, too.

            just a quick note about firewalls, if you are using windows is it XP? if it is there is a built in firewall. I don't know if it will change anything but worth telling you about!

              Write a Reply...