Quantcast
Channel: Active questions tagged utf-8 - Stack Overflow
Viewing all articles
Browse latest Browse all 1217

Google Cloud - SQL - utf8/ utf8_general_ci flags not working

$
0
0

For testing purposes I am trying to recreate a copy of a live database, this live instance is set up with the flag 'character_set_server utf8'. The databases 'information_schema', 'mysql' and our production database all have collation 'utf8-general-ci' and characterset 'utf8'. The databases 'performance_schema' and 'sys' have 'utf8mb4_0900_ai_ci/utf8mb4'.

I have set up a new test instance, same version of mysql (8.0) and with the same characterset flag. But when I try to create a new database (CREATE SCHEMA asdf DEFAULT CHARACTER SET utf8;), either via GCP Console, or via a direct SQL connection, I cant seem to create a database with collation 'utf8-general-ci' and characterset 'utf8'. It keeps setting them to 'utf8mb3_bin/utf8mb3'.


Viewing all articles
Browse latest Browse all 1217

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>