The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Change/Add MySQL port

Discussion in 'General Discussion' started by reactorh, Aug 14, 2006.

  1. reactorh

    reactorh Well-Known Member

    Joined:
    Aug 2, 2005
    Messages:
    56
    Likes Received:
    0
    Trophy Points:
    6
    Hi,

    I need to add a port for MySQL, cause one client cant connect to my mysql server, he said that his corporate proxy settings restrict that..

    Could I add another port to MySQL?

    Thx! :D
     
  2. nickp666

    nickp666 Well-Known Member

    Joined:
    Jan 28, 2005
    Messages:
    770
    Likes Received:
    2
    Trophy Points:
    18
    Location:
    /dev/null
    as far as im aware you would need to run 2 instances of it (which I dont advise) as it only allows you to configure one port, for the sake of 1 client, I wouldnt burden yourself with the trouble it will bring
     
  3. rafaelgp

    rafaelgp Member

    Joined:
    Aug 7, 2006
    Messages:
    22
    Likes Received:
    0
    Trophy Points:
    1
    Hi,

    You can make a portforward with IPTABLES... Don't ask me how because I don't know...

    If u don't know what I'm talking about, a portforward would be like this:

    ---
    every packet sent to port XXXX will be redirected to port 3306. you just have to choose a port number and tell your costumer to use it in all his connections.
    ---

    Tutorial about Iptables: http://www.netfilter.org/documentation/HOWTO//packet-filtering-HOWTO-7.html#ss7.1



    That's all. I hope I could help you.
     
  4. reactorh

    reactorh Well-Known Member

    Joined:
    Aug 2, 2005
    Messages:
    56
    Likes Received:
    0
    Trophy Points:
    6
    Thx for ur help on this issue i will check the iptables redirection it seems the best way!

    Great help on this!! :D
     
  5. rafaelgp

    rafaelgp Member

    Joined:
    Aug 7, 2006
    Messages:
    22
    Likes Received:
    0
    Trophy Points:
    1
    No problem! Tell me if it worked after try ;)
     
Loading...

Share This Page