MySQL 5.1 γƒͺγƒ•γ‚‘γƒ¬γƒ³γ‚Ήγƒžγƒ‹γƒ₯をル :: B Errors, Error Codes, and Common Problems :: B.1 Problems and Common Errors :: B.1.2 Common Errors When Using MySQL Programs :: B.1.2.16 Can't initialize character set
« B.1.2.15 Table 'tbl_name' doesn't exist

B.1.2.17 'File' Not Found and Similar Errors »
Section Navigation      [Toggle]
  • B.1.2 Common Errors When Using MySQL Programs
  • B.1.2.1 Access denied
  • B.1.2.2 Can't connect to [local] MySQL server
  • B.1.2.3 Client does not support authentication protocol
  • B.1.2.4 Password Fails When Entered Interactively
  • B.1.2.5 Host 'host_name' is blocked
  • B.1.2.6 Too many connections
  • B.1.2.7 Out of memory
  • B.1.2.8 MySQL server has gone away
  • B.1.2.9 Packet too large
  • B.1.2.10 Communication Errors and Aborted Connections
  • B.1.2.11 The table is full
  • B.1.2.12 Can't create/write to file
  • B.1.2.13 Commands out of sync
  • B.1.2.14 Ignoring user
  • B.1.2.15 Table 'tbl_name' doesn't exist
  • B.1.2.16 Can't initialize character set
  • B.1.2.17 'File' Not Found and Similar Errors

B.1.2.16. Can't initialize character set

You might see an error like this if you have character set problems:

MySQL Connection Failed: Can't initialize character set charset_name

This error can have any of the following causes:

  • The character set is a multi-byte character set and you have no support for the character set in the client. In this case, you need to recompile the client by running configure with the --with-charset=charset_name or --with-extra-charsets=charset_name option. See ι …2.9.2. γ€Œε…Έεž‹ηš„γͺ configure γ‚ͺプション」.

    All standard MySQL binaries are compiled with --with-extra-character-sets=complex, which enables support for all multi-byte character sets. See ι …4.10.1. γ€Œγƒ‡γƒΌγ‚ΏγŠγ‚ˆγ³γ‚½γƒΌγƒˆη”¨γ‚­γƒ£γƒ©γ‚―γ‚Ώ γ‚»γƒƒγƒˆγ€.

  • The character set is a simple character set that is not compiled into mysqld, and the character set definition files are not in the place where the client expects to find them.

    In this case, you need to use one of the following methods to solve the problem:

    • Recompile the client with support for the character set. See ι …2.9.2. γ€Œε…Έεž‹ηš„γͺ configure γ‚ͺプション」.

    • Specify to the client the directory where the character set definition files are located. For many clients, you can do this with the --character-sets-dir option.

    • Copy the character definition files to the path where the client expects them to be.

Copyright Β© 1997, 2010, Oracle and/or its affiliates. All rights reserved. Legal Notices
Top / Previous / Next / Up / Table of Contents
© 2010, Oracle Corporation and/or its affiliates