Sayyed Hassan Amiri
Sayyed Hassan Amiri

Reputation: 2082

Create password for Mysql database

Helo.
I use Mysql and Java to create new program. This program run on single pc and my database create with my program. Anybody can copy the database that i create and open it on other pc that installed Mysql.
How can i prevent this happen.
Excuse me for my ugly english.

Upvotes: 0

Views: 72

Answers (1)

wmehanna
wmehanna

Reputation: 394

To create a database from you'r Java app, you need a user with database creation grants. I'm not sure to understand the issue, but simply don't give that username/pass to anyone. This will prevent them to access you'r database. Also, you could crypt/hash the password in the connection string in you'r java app.

Upvotes: 1

Related Questions