Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6993357
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T19:45:15+00:00 2026-05-27T19:45:15+00:00

The MySQL manual (http://dev.mysql.com/doc/refman/5.1/en/charset-syntax.html) says: There are default settings for character sets and collations

  • 0

The MySQL manual (http://dev.mysql.com/doc/refman/5.1/en/charset-syntax.html) says:

There are default settings for character sets and collations at four levels: server, database, table, and column. The description in the following sections may appear complex, but it has been found in practice that multiple-level defaulting leads to natural and obvious results.

I’d like to interrogate a specific CHAR/VARCHAR/TEXT column and find out what encoding MySQL thinks it is. Is there an easy way to do this? I know I can use SHOW CREATE TABLE <table> to see the default charset for the table, but I’d like to do the same thing on the column level, as the docs suggest that it might not be the same as the table default.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-27T19:45:16+00:00Added an answer on May 27, 2026 at 7:45 pm

    You can do this in the information_schema.COLUMNS table.

    SELECT 
      COLUMN_NAME,
      TABLE_NAME,
      CHARACTER_SET_NAME,
      COLUMN_TYPE,
      COLLATION_NAME
    FROM information_schema.COLUMNS
    WHERE TABLE_SCHEMA = 'your_database_name'
    

    Example output from a Gallery2 database:

    +-------------------------+--------------------------+--------------------+--------------+-----------------+
    | COLUMN_NAME             | TABLE_NAME               | CHARACTER_SET_NAME | COLUMN_TYPE  | COLLATION_NAME  |
    +-------------------------+--------------------------+--------------------+--------------+-----------------+
    | g_accessListId          | g2_AccessMap             | NULL               | int(11)      | NULL            |
    | g_userOrGroupId         | g2_AccessMap             | NULL               | int(11)      | NULL            |
    | g_permission            | g2_AccessMap             | NULL               | int(11)      | NULL            |
    | g_itemId                | g2_AccessSubscriberMap   | NULL               | int(11)      | NULL            |
    | g_accessListId          | g2_AccessSubscriberMap   | NULL               | int(11)      | NULL            |
    | g_id                    | g2_AlbumItem             | NULL               | int(11)      | NULL            |
    | g_theme                 | g2_AlbumItem             | utf8               | varchar(32)  | utf8_general_ci |
    | g_orderBy               | g2_AlbumItem             | utf8               | varchar(128) | utf8_general_ci |
    | g_orderDirection        | g2_AlbumItem             | utf8               | varchar(32)  | utf8_general_ci |
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

On the manual page; http://dev.mysql.com/doc/refman/5.0/en/mysql-insert-id.html It is said that Returns the value generated for
A mysql database table has a column whose datatype is time ( http://dev.mysql.com/doc/refman/5.0/en/time.html ).
My query seems to be very similar to example from http://dev.mysql.md/doc/refman/5.1/en/in-subquery-optimization.html , but unfortunately
I'm trying to compile Q4M ( http://q4m.31tools.com ) for MySql 5.1.44 since there is
I've tried this: http://be.php.net/manual/en/function.mysql-list-fields.php , but there's too much detail here. What I'm looking
Reading the section Zend_Application_Resource_Modules in the docs here: http://framework.zend.com/manual/1.10/en/zend.application.available-resources.html I noticed this: You can
I followed this link http://www.phpunit.de/manual/3.6/en/database.html there i found some useful details of php db
The mysql manual says that SET NAMES 'x' is equivalent to SET character_set_client =
Quoting MySQL INSERT manual - same goes for UPDATE: Use the keyword DEFAULT to
I saw this comment.... http://www.php.net/manual/en/function.mysql-real-escape-string.php#93005 And began to wonder why this would be a

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.