Sample Header Ad - 728x90

BigQuery can't connection to MySQL Cloud SQL after upgrade from 5.7 to 8.0

0 votes
0 answers
82 views
I have the a similar problem to this here , but the suggestions there don't seem to work. When trying to execute a query I get this:
Invalid table-valued function EXTERNAL_QUERY Failed to connect to MySQL database. Error: 
MysqlErrorCode(2059): 
Authentication plugin 'caching_sha2_password' cannot be loaded:
/usr/lib/plugin/caching_sha2_password.so: 
cannot open shared object file: No such file or directory at [1:15]
When trying to query from BigQuery to a MySQL 8.0.37 Cloud SQL db. Tried with two different users. Works fine with those credentials from the Cloud SQL Studio. This used to work before upgrading to 8.0 from 5.7. I did change the auth type for the user to caching_sha2_password and the db is running with caching_sha2_password as the default auth. The Cloud SQL server log shows:
[Note] [MY-010914] [Server] Got an error reading communication packets
for each query attempt. External (mysql commandline and Intellij datagrid) and cloud run JDBC connections work too, just not the BigQuery External access. Any ideas?
Asked by cputoaster (101 rep)
Oct 29, 2024, 01:47 PM
Last activity: Oct 29, 2024, 02:34 PM