java - JDBC MySQL connection without specifying password -
is possible connect mysql database without specifying username , password in java code :
connection con=drivermanager.getconnection("database url","username","password");
or there way alter username , password using java?
i don't know if can setup default user, can set user no password.
as sec question, assuming connection has adequet rights in mysql, can set password on user. basic way do:
update user set password=password('new_pass') user = 'someuser';
optionally may want specify host field in clause. needs ran in msql database.
java mysql connection
No comments:
Post a Comment