MySQL database connection through PowerShell, old style password -


i attempting connect mysql server through powershell. however, password doesn't seem work because "authentication old password no longer supported, use 4.1 style passwords." using mysql ado.net driver connect , has returned no error point.

# connection variables  $user = 'cantshowusernamehere'  $pass = 'pretendrealpassword'  $database = 'pretenddatabasehere'  $mysqlhost = 'something.something.ca'   # connect mysql database  $conn = connect-mysql $user $pass $mysqlhost $database 

will return me

exception calling "open" "0" argument(s): "authentication old password no longer supported, use 4.1 style passwords."

anyone know how can change new style password through powershell? thanks, have been searching couple hours now, , solutions out there people utilizing other programs such php sql work.

i had down-grade version of mysql .net connector using (latest: 6.9.7, fell 6.5.7). realize goes against common wisdom of "fix database server", it's internal , there far many resources using weigh risk of setting old_passwords=0 , resetting of (known) passwords update hashes (just find out we've broke buried tool somewhere)


Comments

Popular posts from this blog

node.js - Bad Request - node js ajax post -

Why does Ruby on Rails generate add a blank line to the end of a file? -

keyboard - Smiles and long press feature in Android -