
- Learn MySQL
- MySQL - Home
- MySQL - Introduction
- MySQL - Installation
- MySQL - Administration
- MySQL - PHP Syntax
- MySQL - Connection
- MySQL - Create Database
- MySQL - Drop Database
- MySQL - Select Database
- MySQL - Data Types
- MySQL - Create Tables
- MySQL - Drop Tables
- MySQL - Insert Query
- MySQL - Select Query
- MySQL - Where Clause
- MySQL - Update Query
- MySQL - Delete Query
- MySQL - Like Clause
- MySQL - Sorting Results
- MySQL - Using Join
- MySQL - NULL Values
- MySQL - Regexps
- MySQL - Transactions
- MySQL - Alter Command
- MySQL - Indexes
- MySQL - Temporary Tables
- MySQL - Clone Tables
- MySQL - Database Info
- MySQL - Using Sequences
- MySQL - Handling Duplicates
- MySQL - SQL Injection
- MySQL - Database Export
- MySQL - Database Import
How can we check the default character sets of all the MySQL databases we have on the server?
The query below will return the name of the database along with the default character set −
mysql> SELECT SCHEMA_NAME 'Database', default_character_set_name 'charset' FROM information_schema.SCHEMATA; +--------------------+---------+ | Database | Charset | +--------------------+---------+ | information_schema | utf8 | | gaurav | latin1 | | menagerie | latin1 | | mysql | latin1 | | performance_schema | utf8 | | sample | latin1 | | test | latin1 | | tutorial | latin1 | +--------------------+---------+ 8 rows in set (0.00 sec)
- Related Articles
- How can we check the default character sets of a particular MySQL database?
- How can we display a list of currently existing MySQL databases on the server?
- How can we check the character set of all the tables in a particular MySQL database?
- How can we get the list of MySQL server-side help categories?
- How can we change the default MySQL database to the given database?
- How to GRANT SELECT ON all tables in all databases on a server with MySQL?
- How can we get “MySQL server-side help”?
- How can we take a backup of all the databases by using mysqldump client program?
- How do I find out the default server character set in MySQL?
- How can we list all the columns of a MySQL view as we can list the columns of a MySQL table?
- How can we get an idea about the server performance from the output of MySQL?
- What is the synonym statement of SHOW DATABASES with the help of which we can see the list of MySQL databases?
- How can I check the version of MySQL Server?
- How can I check the status of MySQL Server?
- Which MySQL query can be used with the help of which we can see the list of MySQL databases?

Advertisements