Results 1 to 4 of 4

Thread: Proper way of writing/reading to MySQL

  1. #1

    Thread Starter
    Hyperactive Member Cyb3rH4Xter's Avatar
    Join Date
    May 2009
    Location
    Sweden
    Posts
    449

    Proper way of writing/reading to MySQL

    I have made a few small programs which connects to a db to fetch some info and/or write stuff there too. They do it with the MySQL connector with the username and password hardcoded (just using the apps by myself anyway).

    I read somewhere though that you shouldn't do like that if you are releasing the program to the public, you should do another way (which I can't remember what it was).

    So how should I do to be able to write and read from a table in a MySQL DB with my program, safe and secure (okay not ubersecure, just better than hardcoding, for example if I want to release the source code)?


  2. #2
    Super Moderator jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    111,222

    Re: Proper way of writing/reading to MySQL

    Follow the CodeBank link in my signature and check out my Protected Configuration thread. That will show you how to store and edit your connection string securely.
    Why is my data not saved to my database? | MSDN Data Walkthroughs
    VBForums Database Development FAQ
    My CodeBank Submissions: VB | C#
    My Blog: Data Among Multiple Forms (3 parts)
    Beginner Tutorials: VB | C# | SQL

  3. #3

    Thread Starter
    Hyperactive Member Cyb3rH4Xter's Avatar
    Join Date
    May 2009
    Location
    Sweden
    Posts
    449

    Re: Proper way of writing/reading to MySQL

    I read it, smart!

  4. #4
    Frenzied Member TheBigB's Avatar
    Join Date
    Mar 2006
    Location
    *Stack Trace*
    Posts
    1,511

    Re: Proper way of writing/reading to MySQL

    Alright, but when the application connects with the MySQL server, isn't the password sent in plain text?
    Delete it. They just clutter threads anyway.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width