c# - mysqldump.exe requires a password even though it is given in the argument -


the question says - i'm creating process , i'm passing processstartinfo object processstartinfo.filename , processstartinfo.arguments constructor parameters process.

as processstartinfo.filename i'm using mysql.exe contained in project folder.

my processstartinfo.arguments string looks this;

-h localhost --port=3306 -u pete -p 1234 db1 -r c:\\users\\pete\\databases\\localhost_db1.sql 

when start process console asks password enter - problem don't want reenter it. authentication , dump should both executed in 1 step - possible?

i'm using visual studio 2017 enterprise .netcoreapp 1.1 framework.

edit: when i'm not using password, works fine. .sql-file created , database dumped.

when programming application uses dataset such mysql or mongodb never want store password in plain text. should either put textbox thats hidden hide password catching eyes, or use file inside of project when compiled hold password instead.

when use "-p" parameter assume want enter password same "-u". try using --username , --password instead set username , password connect with.


Comments

Popular posts from this blog

python - Selenium remoteWebDriver (& SauceLabs) Firefox moseMoveTo action exception -

html - How to custom Bootstrap grid height? -

transpose - Maple isnt executing function but prints function term -