MySQL4 File ' c:\mysql\share\charsets\? Conf ' not found (errcode:22) solution _mysql

Source: Internet
Author: User
Tags mysql in php and phpinfo

The following prompts are present in the PHP 4.4.1+mysql 5.1 environment:

Copy Code code as follows:

File ' C:\mysql\share\charsets\? Conf ' not found (errcode:22) Character set ' #33 ′is not a compiled Character set and isn't specified in ' C:\mysql\sh Are\charsets\index ' File

After a lookup, you can basically determine the cause of compatibility between the lower version of PHP and the high version of MySQL.

The easiest way is to upgrade PHP to PHP5.3 version can be done, unknown test. Because the server is not my match, dare not move, afraid of trouble, so keep the lower version of PHP, find another way.

The following tests on a variety of network-found solutions for everyone to refer to:


There is said to be MySQL configuration basedir not set up, check the MySQL installation directory under the My.ini,basedir correct, not this reason.

There is said that the MySQL configuration My.ini in front of the Default-character-set=utf8 plus # comment off on the fix, I changed, invalid.

There is said that the MySQL installation directory \share\charsets directory of all files copied to the c:\mysql\share\charsets\ under, I copied, as invalid.

Finally, we find a way to change the output_buffering = off in php.ini to output_buffering = On, and the tips above are gone and done.

Know it, do not know why. Which prawns know, please inform, Brother thanked!

Temporarily solve ... \charsets\? Conf ' not found (errcode:22) Character set ' #33 '

PHP program prompts the following similar error message: File ' c:\mysql\share\charsets\? Conf ' not found (errcode:22) Character set ' #33 ' are not a compiled Character set and isn't specified in ' C:\mysql\sh Are\charsets\index ' File This error does not affect the operation of the program, but affects the interface.

Probably the reason is because MySQL 4.1 version of the code rule changes caused a lot of big and small problems, if the server's default character set is Utf8,dos window will appear such a hint.
There are a number of such problems, but from the results of the search, the final solution to this problem is very few people, it is said that someone used php5 to solve. But I don't want to upgrade to PHP5, it took a lot of time to see a person's good advice (because there was no record in the company's search, so the provenance was not well), and that person probably meant seeing the following information from the official website of MYSLQ: "Later on the official MySQL website, it was said The error message is not that you want to find a file in that directory, then set up a directory! The better place is that the post also provides the relevant documents, I specially put in a U disk brought back, share! PS: After decompression, the MySQL folder in the charsets directory to replace MySQL under the Charsets directory on the line! Compression package Download: Click here to download the attachment (mysql.zip)

Pictures in Apache+php+mysql cannot display problems

I did a PHP page that shows the pictures in the database, but it doesn't show up. Check the log in Apache and find the following hints:
File ' C:\mysql\share\charsets\? Conf ' not found (errcode:2)
Character set ' #24 ' is not a compiled Character set and isn't specified in ' c:\mysql\share\charsets\Index ' file
File ' C:\mysql\share\charsets\? Conf ' not found (errcode:2)
Character set ' #24 ' is not a compiled Character set and isn't specified in ' c:\mysql\share\charsets\Index ' file
File ' C:\mysql\share\charsets\? Conf ' not found (errcode:2)

Solution:
Now determine the version of MySQL that phpinfo () displays. If the version that is displayed is not the same as the version of MySQL running in the machine, it is a problem. My machine runs on the 4.1 version, but it shows the 3.23.49 version. It may be that the previously installed version of MySQL is not uninstalled completely. Recompile PHP,
./configure--with-mysql=/${mysql}. View the version of MySQL in Phpinfo () again. Refresh the page that displays the picture to display it correctly.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.