Mysql through my. cnf to modify the default character set for UTF-8 method and precautions, my. cnfutf-8
Option Configuration
Configuration File Path: /full/path/mysql/bin/my.cnf (Default value:/etc/my.cnf )
[client]default-character-set=utf8[mysql]default-character-set=utf8[mysqld]init_connect='SET collation_connectio
# The following options will be passed to all MySQL clients[Client]Character-set-server = utf8 ##### Default Client Connection word set. This parameter is not required if it is specified during compilation and installation.Port = 3306 ### client connection communication portSocket =/tmp/mysql. sock # Save the file for information such as the user password port for client communication
# Here follows entries
Mysqld Program-directory and file
Basedir = path uses the given directory as the root directory (installation directory ).
Character-sets-dir = path indicates the directory where the character set is stored.
Datadir = path reads database files from a given directory.
Pid-file = filename specifies a file for the mysqld program to store the process ID (only applicable to UNIX/Linux systems). The Init-V script needs to end the mysqld process using the process ID in the file.
Socket = filename: Spec
Key_buffer
The index block is buffered and shared by all threads. Key_buffer_size is the buffer size used for index blocks. You can increase the size of indexes that can be better processed (for all reads and multi-Rewrite) so that you can afford that much. If you make it too large, the system will begin to change pages and it will really slow down. The default value is 8388600 (8 m). My MySQL host has 2 GB of memory, so I changed it to 402649088 (40
After the MySQL installation is successful, there are several default configuration templates, which are listed below:MY-HUGE.CNF: for high-end products server, including 1 to 2GB RAM, mainly running MySQLMy-innodb-heavy-4g.ini: for installation with only InnoDB, up to 4GB RAM, support for large queries and low trafficmy-large.cnf: for medium-scale product servers, including approximately 512M RAMmy-medium.cnf: for low-end product servers, including l
[Mysqld]Port = 3306Serverid = 1Socket =/tmp/mysql. sockSkip-locking
# Avoid external locks of MySQL to reduce the chance of errors and enhance stability.
Skip-name-resolve
Prohibit MySQL from performing DNS resolution on external connections. This option can eliminate the time for MySQL to perform DNS resolution. Howev
PS: This configuration file is designed for Dell R710, dual Xeon E5620, and 16 GB memory hardware. CentOS 5.6 64-bit system, MySQL 5.5.x stable version. Applicable to websites with daily IP addresses of 50-100 w and PV of-w, mainly using the InnoDB Storage engine. For other application environments, Set Optimization Based on actual conditions.# The following options will be read by the MySQL client applicat
1. To obtain the current configuration parameters, you must first understand the current configuration parameters and running conditions. Use the following command to obtain the configuration parameters currently used by the server: mysqldnda
1. To obtain the current configuration parameters, you must first understand the current configuration parameters and running conditions. Use the following command to obtain the configuration parameters currently used by the server: mysqld nda
1. Get t
Environment: when mysql is not installed in centos6.532 bits, my already exists in the etc directory. what is cnf and its role. after mysql is installed, run the following code in mysql: {code ...} is it true that mysql's my ....
Environment: centos 6.5 32-bitWhen mysql is n
Editor and View are the two UI elements for displaying and managing resources in Eclipse. Editor provides a convenient mechanism to help users to modify and save resources. But for view, it is to a large extent to provide a tree-like display of resources, so how to change the resources to reflect the view, and through the operation of the view to save the resources in the view? The Common Navigator Framework (CNF) provides a resource-saving mechanism
The following is a description of parameters in the my. cnf configuration file [client] port3309sockethomemysqlmysqltmpmy
The following is a description of parameters in the my. cnf configuration file [client] port = 3309 socket =/home/mysql/tmp/my
The following is a description of parameters in the my. cnf config
Key Parameter Optimization Configuration of my. cnf (my. ini), my. cnfmy. ini
MyISAM storage engine
MyISAM storage engine is suitable for systems with high read performance requirements due to multiple reads and writes.
Official documents: http://dev.mysql.com/doc/refman/5.6/en/myisam-storage-engine.html
Key_buffer_size, which can be set to around 30%-40% of the memory. Use show variables like '% key_buffer_size % ';
Use show global status like '% key
MySQL5.5 single-host my. cnf Parameter Optimization in CentOS
PS: This configuration file is designed for Dell R710, dual Xeon E5620, and 16 GB memory hardware. CentOS 5.6 64-bit system, MySQL 5.5.x stable version. Applicable to websites with daily IP addresses of 50-100 w and PV of-w, mainly using the InnoDB Storage engine. For other application environments, Set Optimization Based on actual conditions.
#
[[Email protected] ~] # Vim/etc/My. CNF
[Mysqld]
Datadir =/var/lib/MySQLSocket =/var/lib/MySQL. SockUser = MySQL# Disabling symbolic-links is recommended to prevent assorted Security RisksSymbolic-links = 0
[Mysqld_safe]Log-error =/var/log/mysqld. LogPID-file =/var/run/mysqld. PID
The above is the initial value and can be written under/etc.
The following
Install the MySQL5.7.18 Binary Package in Linux (manually add the configuration file my_default.cnf) and mysqlmydefault. cnf
Source: http://www.cnblogs.com/wy123/p/6815049.html
I am new to MySQL, but I don't know much about Linux, Because I downloaded the latest MySQL (MySQL5.7.18) Binary Package and tested and installed it in CentOS7.2 to facilitate the futur
Xampp installation encounters World-writable config file '/opt/lampp/etc/my. cnf 'is ignored error solution: xampp is installed on ubuntu today. After the installation is complete, the system prompts World-writable config file'/opt/lampp/etc/my when lampp start is executed. cnf 'is ignored and mysql cannot be started. Enter phpmyadmin in the browser and prompt Wr
The file is as follows. Modify the file as needed:
#/Usr/share/mysql/my-huge.cnf# MariaDB configuration file sample template (huge, giant ).## This file applies to dedicated database servers with a memory of 1 GB to 2 GB.# Only large MariaDB systems are running on the machine,## The MariaDB program searches for a series of configuration files based on the operating system platform,# You can copy the template configuration file to the corresponding loc
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.