I have a Perl script that receives data from a database on a server (let's call it Server 1), Stuff it with it and writes it on server (server2) on another server. Both servers are remote from the server that runs the Perl script.
I can connect to DB on server 1 OK, but when I try to connect to DB on server 2, using the same DBI method, I get an error. Here, as the command line Pearl, the error is causing the error:
perl -MDBI -e 'dbi-> connect ("dbi: mysql: myDB: server2.whatever .co
And here's the error message:
DBi Connect ('UK', 'MyUser', 'Mypassword') or DBI-> IRSR; MyDB: server2.whatever.co.uk ',' myuser ', ...) Failure: The client does not support the authentication protocol requested by the server; Consider upgrading MySQL Client into E line 1 Client sir I do not support the authentication protocol requested by Via; I do not have root access, so I can not upgrade MySQL and I can not change the password to use the old password hashing algorithm , Which is the suggested solution in many places.
Anyone considering?
Accept connections only from a fixed address set as a security measure. The database can be prepared for this so if you are trying to use a prod database from a home laptop (for example), then it may refuse you, even if you have the proper credentials Try accessing from the place where it is known to use any other technique - for example, if you have a website that already access it, then there S is running Apache / Tomcat, and there try Prl. If this works, then this problem is. You can check the database settings continuously.
Comments
Post a Comment