Bug #16482 File 'c:\mysql\share\charsets\?.conf' not found (Errcode: 22) Character set '

Submitted: 13 Jan 2006 14:09 Modified: 8 Jul 2006 17:50
Reporter: ramta jatt Email Updates:
Status: No Feedback Impact on me:
None 
Category:MySQL Server Severity:S3 (Non-critical)
Version:4.1 OS:Windows (win xp)
Assigned to: CPU Architecture:Any

[13 Jan 2006 14:09] ramta jatt
Description:
I have encoding for mysql server set to utf-8

When I try to insert records using php webpage I get following error:

File 'c:\mysql\share\charsets\?.conf' not found (Errcode: 2) Character set '#33' is not a compiled character set and is not specified in the 'c:\mysql\share\charsets\Index' file

MySQl server is installed on g:\program files\mysql.. 
The error seems to suggest that some code in mysql server is trying to find files in c:\mysql\share\charsets

When I copy share\charsets directory from g:\program files\mysql.. to c:\mysql, I get different error:

File 'c:\mysql\share\charsets\?.conf' not found (Errcode: 22) Character set '#33' is not a compiled character set and is not specified in the 'c:\mysql\share\charsets\Index' file

Errcode changes from 2 to 22.

How to repeat:
Install MySQL with default settngs and Encoding UTF8
Create a demo database and use php to insert new records.
[13 Jan 2006 14:13] ramta jatt
Also, the encoding of php file seems to cause this error. I open the file in Wordpad and saved it again. The error did not occur again
[13 Jan 2006 17:53] Valeriy Kravchuk
Please, specify the exact version of MySQL server (4.1.x) and PHP used.
[14 Feb 2006 0:00] Bugs System
No feedback was provided for this bug for over a month, so it is
being suspended automatically. If you are able to provide the
information that was originally requested, please do so and change
the status of the bug back to "Open".
[25 May 2006 12:57] Wagner Bianchi
I have the same problem with MySQL x PHP. The same message!

 'c:\mysql\share\charsets\?.conf' not found (Errcode: 22) Character set '#33' is not a compiled character set and is not specified in the 'c:\mysql\share\charsets\Index' file

Somebody have a resolution for this problem??

Thk's
[25 May 2006 12:59] Wagner Bianchi
I'm using PHP 4.4.2 and MySQL 4.1

Thk's
[8 Jun 2006 17:50] Valeriy Kravchuk
4.1 is not precise. Please, try to repeat with the latest version, 4.1.20, and inform about the results. Try to use mysqli and PHP 5 also.
[8 Jul 2006 23:00] Bugs System
No feedback was provided for this bug for over a month, so it is
being suspended automatically. If you are able to provide the
information that was originally requested, please do so and change
the status of the bug back to "Open".
[18 Oct 2006 0:20] Jan Lopa
A temporary solve for this in PHP is to add:
error_reporting(~ E_NOTICE );

and at least you wont see the erros on the page.

Portions of this website are copyright © 2001, 2002 The PHP Group

Page generated in 0.056 sec. using MySQL 8.4.7-u6-cloud

Timestamp references displayed by the system are UTC.
Content reproduced on this site is the property of the respective copyright holders.
It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.