
Originally Posted by
exe19890522
thanks.my means is this:
in the db/Database.cs file,at line 18:
_con = new MySqlConnection("Server=127.0.0.1;Database=mmoe;uid=root;password=;");
i want to rewrite it and let it read text from a file named sqlconnect.ini.
and in in the sqlconnect.ini file ,it contain this:
[sql]
Server=127.0.0.1
Database=mmoe
uid=root
password=123456
============
so if want to change my sql's pwd to 11112222,i just need change the password in the ini file ,
and no need to rebuild the source code.
even this is not much big ,i think if i know how to get this way,i can try it in the next code.
it is usefull for me.
if you can tell me ,please reply it ,i search some code on the internet,but those are all not work well.
thank you.