TLS Support for Google Cloud SQL (2nd Generation) and Google App Engine
When connecting to Google Cloud SQL (2nd generation) instances from Google App Engine, users may encounter the error, "TLS requested but server does not support TLS." This issue stems from the connection string used to establish a database connection.
Incompatibility with MySQL Level SSL
The root cause of the error lies in the incompatibility between MySQL level SSL and App Engine Standard Environment. MySQL level SSL, often used to enhance communication security, is not currently supported when connecting to Cloud SQL (2nd generation) instances from App Engine Standard Environment.
Implications and Mitigation
Despite the lack of MySQL level SSL support, communication between App Engine Standard Environment and Cloud SQL is already encrypted, offering sufficient protection. However, using MySQL level SSL can provide an additional layer of reassurance.
To mitigate the issue, developers should avoid using MySQL level SSL when connecting to Cloud SQL (2nd generation) instances from App Engine Standard Environment. Instead, they can rely on the default encryption mechanisms provided by the platform.
The above is the detailed content of Why Does Connecting to Google Cloud SQL (2nd Generation) from App Engine Result in 'TLS requested but server does not support TLS'?. For more information, please follow other related articles on the PHP Chinese website!