|
-
Oct 28th, 2011, 05:59 PM
#1
Thread Starter
Hyperactive Member
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)?
-
Oct 30th, 2011, 07:50 AM
#2
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.
-
Oct 30th, 2011, 03:32 PM
#3
Thread Starter
Hyperactive Member
Re: Proper way of writing/reading to MySQL
-
Oct 31st, 2011, 11:20 AM
#4
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|