Simplest Enterprise Continuous Integration Solutions

Saturday, November 13, 2010

MySQL: get MySQL database character set

[root@linux64-jira-server ~]# mysql -u root -h linux64-jira-server -p
Enter password:
Welcome to the MySQL monitor.  Commands end with ; or \g.
Your MySQL connection id is 525
Server version: 5.5.25-community MySQL Community Server (GPL)

Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
mysql> show databases;
+--------------------+
| Database           |
+--------------------+
| information_schema |
| latin1jiradb       |
| mysql              |
| test               |
+--------------------+
4 rows in set (0.00 sec)

mysql> use mysql
Reading table information for completion of table and column names
You can turn off this feature to get a quicker startup with -A

Database changed
mysql> SELECT default_character_set_name FROM information_schema.SCHEMATA S WHERE schema_name = "latin1jiradb";

+----------------------------+
| default_character_set_name |
+----------------------------+
| latin1                     |
+----------------------------+
1 row in set (0.00 sec)

mysql>exit
Bye

No comments:

Post a Comment