Install mysql in linux and add character sets gbk and gb2312

Source: Internet
Author: User
You can add the following parameter during compilation. configure -- prefixusrlocalmysql -- with-charsetgbk -- The with-extra-charsetsgb2312 uses the datadir parameter to specify the database storage path -- datadirdatamysqldatamakemakeinstall to restart mysql. If you do not want to recompile mysql

You can add the following parameters during compilation:

./Configure -- prefix =/usr/local/mysql -- with-charSet= Gbk ---ExTrA-charsets = gb2312

The datadir parameter can be used to specify the database storage path-datadir =/data/mysqldata

Make & make install

Restart mysql.

If you do not want to re-compile mysql to add a character set, I have no way to copy all the charsets character set files from other systemsLinuxNot even.

According to the official instructions, it is compiled into the library file. It is estimated that it will not work without recompiling.

 

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.