MySQL's storage engine and character set

Source: Internet
Author: User

The database has different storage and management methods for the same data, which is called the storage engine in MySQL.

The common storage engine has myisam,innodb,memory,mysql default is InnoDB.

MyISAM bulk insertion speed is faster than InnoDB, MyISAM can transfer data from the local server to another server by copying it directly to the data directory of the other server.

InnoDB security is higher than MyISAM, INNODB data is not easy to lose.

Memory data is stored in RAM, very fast, but the server shut down, the data is gone, for some do not have long time to save data can be used memory.

Resolve character garbled

Locate the F:\wamp\server\MySQL5.5\my.ini configuration file, open it with Notepad, modify

[Client]
Default-character-set=utf8
[MySQL]
Default-character-set=utf8
[Mysqld]
Default-character-set=utf8
Add in PHP file
Header ("Content-type:text/html;charset=utf-8");
HTML file to be written
<meta http-equiv= "Content-type" content= "text/html; Charset=utf-8 ">
Apache's F:\wamp\server\Apache2.2\conf\extra\httpd-languages.conf to have
Adddefaultcharset Utf-8
The PHP file itself is saved in the format Utf-8
Database read part to add mysql_query ("set names Utf8″);
MySQL character (character set), collation (proofing set, also called collation) to be set to Utf-8

MySQL's storage engine and character set

Related Article

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.