MySQL installation Configuration

Source: Internet
Author: User

MySQLInstall configurations

1.Download mysql5.5.18 Green Edition and MySQL Official Website: mysql.com.

2.Decompress the package to the Directory D: \ mysql5.5.18.

3.Add MySQL to the environment variable path:

; D: \ mysql5.5.18 \ bin

4.Modify the port and Character Set: Find My. open and edit the ini configuration file, change the port to 3306 (Note: The default value is 3306 during installation), and change the server character set to utf8 (Note: note version), as shown below:

# The following options will be passed to all MySQL clients

[Client]

# Password = your_password

Port = 3306

Socket =/tmp/MySQL. Sock

Default-character-set = GBK

 

# Here follows entries for some specific programs

 

# The MySQL Server

[Mysqld]

Port = 3306

Socket =/tmp/MySQL. Sock

Skip-locking

Key_buffer_size = 256 m

Max_allowed_packet = 1 m

Table_open_cache = 256

Sort_buffer_size = 1 m

Read_buffer_size = 1 m

Read_rnd_buffer_size = 4 m

Myisam_sort_buffer_size = 64 m

Thread_cache_size = 8

Query_cache_size = 16 m

# Try Number of CPU's * 2 for thread_concurrency

Thread_concurrency = 8

Default-character-set = utf8

Log_bin_trust_function_creators = 1

Note: My. iniThe configuration file must be available.

5.After the MySQL database is installed, find the data folder under its installation directory and paste the database file into the data folder. Start mysqld in the bin folder under the installation directory.

 

 

 

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.