Search code examples
mysql5port-number

can two mysql version can share same port number?


Hi I have mysql 5.0 and going to install mysql 5.5 Can i use the same port 3306 for the both versions of mysql? Will it create any problems?


Solution

  • Two services cannot listen on the same IP address and Port concurrently.

    You have to either

    1. Change the port number of one of the instances.
    2. Run one instance on a second network interface (i.e. a different IP address).
    3. Do not run them concurrently.

    This is not due to any Mysql version restrictions. Its just a port cannot be taken by more than one application to listen on, on the same network address.