Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. General Programming
  3. C#
  4. Socket server handling MySQL queries from clients and return the response to them

Socket server handling MySQL queries from clients and return the response to them

Scheduled Pinned Locked Moved C#
databasemysqlsysadminsecurityquestion
3 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • I Offline
    I Offline
    Islorvat
    wrote on last edited by
    #1

    Hello, Why would someone use this technique instead of letting apps directly query the MySQL server? Are there any security benefits or what? Thanks, Adrian

    Richard Andrew x64R S 2 Replies Last reply
    0
    • I Islorvat

      Hello, Why would someone use this technique instead of letting apps directly query the MySQL server? Are there any security benefits or what? Thanks, Adrian

      Richard Andrew x64R Offline
      Richard Andrew x64R Offline
      Richard Andrew x64
      wrote on last edited by
      #2

      It's dangerous to directly expose the database over the internet. It's much safer to use a proxy in between the clients and the database, because you can enforce authentication and data access security.

      The difficult we do right away... ...the impossible takes slightly longer.

      1 Reply Last reply
      0
      • I Islorvat

        Hello, Why would someone use this technique instead of letting apps directly query the MySQL server? Are there any security benefits or what? Thanks, Adrian

        S Offline
        S Offline
        SledgeHammer01
        wrote on last edited by
        #3

        You don't have to build a socket server... could do something much easier like WCF or a web service. Never expose your DB server to the internet. Do you want script kiddies connecting and doing DROP TABLEs :)? Any company with even a remotely real IT department will not allow this anyways. Standard IT security protocol.

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups