database - Why do I get a "#08S01Bad handshake error" while connecting to remote db using Net::MySQL? -


i able connect remote db using "mysql -h -u'root' option. remote db has no password root. when use net::mysql throws _#08s01bad handshake error_.

my $mysql = net::mysql->new(         hostname   => '<ip>',         database   => '<db>',         user       => 'root',         password   => ''     ); 

the sql version of local machine 5.5.44. able connect same remote db(mysql ver 5.0.45) using same code different machine(mysql ver 5.0.24).


Comments

Popular posts from this blog

java - UnknownEntityTypeException: Unable to locate persister (Hibernate 5.0) -

python - ValueError: empty vocabulary; perhaps the documents only contain stop words -

ubuntu - collect2: fatal error: ld terminated with signal 9 [Killed] -