Community Forums
Connect with us on LinkedIn

View Poll Results: Do you allow remote MySQL access?

Voters
15. You may not vote on this poll
  • Yes

    6 40.00%
  • No

    9 60.00%
  • not sure

    0 0%
+ Reply to Thread
Results 1 to 2 of 2
  1. #1
    Member
    Join Date
    May 2006
    Location
    Johannesburg, South Africa
    Posts
    944
    cPanel/Enkompass Access Level

    Root Administrator

    Default Do you allow remote MySQL access?

    Hi,



    I'm curious, do you allow remote MySQL access to your server(s)?

    This could have an impact on your security and bandwidth usage, but a lot of clients also need to use it.



    So, as matter of interest, who allows remote MySQL access, and what kind of problems have you run into so far?

    Upto now we just move all clients who need remote MySQL access to a specific server that has MySQL ports open, but that server is getting full and I'm considering just opening the ports on all the servers instead. cPanel also has a utility where the client needs to add his IP to the "allow remote MySQL connections" list, so it does add some security, but it's still plain text (AFAIK), so it does open up a security hole nonetheless.



    I suppose I could change the MySQL port, OR probably even port forward another port to the MySQL port for added security.



    But has anyone really had any problems with an open MySQL server?



    P.S. I know about phpMyAdmin, and how to block the port. This isn't a "how do I block the ports", or "how do I setup phpMyAdmin" question.
    • cPanel :: Fantastico :: RVSkin :: WHM :: ModernBill
    • Reseller Hosting :: SSL Certificates :: Domain Registrations :: Affiliate Program
    • Blog Hosting :: CMS Hosting :: Forum Hosting :: E-Commerce Hosting
    SoftDux- The Leaders in Software
    Use the coupon: cpanel-06 to get 20% off our packages

  2. #2
    d_t
    d_t is offline
    Member
    Join Date
    Sep 2003
    Location
    Bucharest
    Posts
    239

    Default

    I block MySQL port from firewall for all except IPs from "Allow remote MySQL". In csf you can do this by adding the following query result to /etc/csf/csf.allow

    Code:
    mysql mysql -e "select Host,User from user where Host!='localhost' group by Host;" | awk {'print "tcp:in:d=3306:s=" $1 "\t# " $2'} | sed "s/\%//g" | egrep "[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}" | grep -v "127.0.0.1" | sort | uniq

Similar Threads & Tags
Similar threads

  1. not able to connect remote MySQL : Remote Database Access Hosts
    By crazyaboutlinux in forum Database Discussions
    Replies: 4
    Last Post: 10-05-2011, 03:55 PM
  2. Do you allow remote MySQL access?
    By SoftDux in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 06-01-2010, 02:56 PM
  3. How do I allow for remote mysql access? For everyone? Not just one ip?
    By CrewXp in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 08-27-2007, 01:15 AM
  4. MySQL database remote access (Access Host)
    By akot2 in forum Database Discussions
    Replies: 4
    Last Post: 12-21-2006, 09:45 AM
  5. remote mysql access
    By Shi in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 01-18-2006, 02:33 PM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube