mysql manual里有呀:
"
If you get an error like: MySQL Connection Failed: Can't initialize character set xxxThis means one of the following things: The character set is a multi-byte character set and you have not support for the character set in the client. In this case you need to recompile the client with --with-charset=xxx or with --with-extra-charsets=xxx. See section 2.3.3 Typical configure Options. All standard MySQL binaries are compiled with --with-extra-character-sets=complex which will enable support for all multi-byte character sets. See section 4.6.1 The Character Set Used for Data and Sorting. 
The character set is a simple character set which is not compiled into mysqld and the character set definition files is not in the place where the client expect to find them. In this case you need to: 
Recompile the client with support for the character set. See section 2.3.3 Typical configure Options. 
Specify to the client where the character set definition files are. For many client you can do this with the --character-sets-dir=path-to-charset-dir option. 
Copy the character definition files to the path where the client expect them to be. 
"

解决方案 »

  1.   

    我把    with-charset=gbk(为了jsp的模糊查询)
    所以才这样在保持with-charset=gbk的情况下  怎么让php正常使用
      

  2.   

    Warning: MySQL Connection Failed: Can't initialize character set 28 (path: default) in lib.inc.php3 on line 255
      

  3.   

    怎么解决了
    mysql中  with-charset=gbk(为了jsp的模糊查询)在保持with-charset=gbk的情况下  怎么让php正常使用不出现下错误 
    (Warning: MySQL Connection Failed: Can't initialize character set 28 (path: default) in lib.inc.php3 on line 255 )