Wednesday, 25 July 2018

MySQL: Script to find default Character Set for Database, Table and Column

In this post, I am sharing few scripts for finding the default character set of a MySQL Database, Table and Column.
Generally, during the process of database migration, we are checking default character set and collation at MySQL Server level.
But in our production MySQL Server, I found that some of the tables have different character set which was not required.
As a database professional, we have to maintain consistency between all database objects.
Find default Characater Set for Database:
Find default Characater Set for Table:
Find default Character Set for Column:

0 comments:

Post a Comment