Document directory
Source: http://www.eygle.com/digest [website technology]Link: http://www.eygle.com/digest/2007/06/mysql_mycnf.html
Recommended settings:
For a single running web server, we recommend that you add:Skip-lockingSkip-name-resolveSkip-networking
Use "localhost" when connecting to the database in PHP.The mysql client library will overwrite and try to connect to the local socket .(We can code from PhP. ini:
; Default socket name
# Begin config info
# Descr: 4 gb ram, only InnoDB, acid, a small number of connections, large queue Load
# Type: System
# End config info
#
# This MySQL configuration file example is for 4G memory and is downloaded from www.bt285.cn Bt and tested with www.5a5w.cn novel 520, IP address 2 W and PV 20 W.
# Mainly use InnoDB
# MySQL that processes complex queues and has a small number of connect
= 4Innodb_read_io_threads = 4# Innodb uses background threads to process read/write I/O (input/output) requests on the data page, which is changed according to the number of your CPU cores. The default value is 4.# Note: These two parameters do not support dynamic changes. You need to add them to my. cnf. After modification, restart the MySQL service. The allowed value ranges from 1 to 64.
Innodb_thread_co
If reprint this article, please indicate the original source: http://hi.baidu.com/hexiong/blog/item/e860e5dd9b0d3ae376c6381a.html(Hexiong @ Baidu or iihero @ csdn)
Sometimes someone asks you to use the MySQL command line. It is annoying to input boring options such as default-character-set = GBK. A few more characters are entered.
In addition, sometimes I am DIY and seldom use the installed version on windows. I always decompress it, and then put my.
Next, let's take a look at the Log Type and file configuration details of my. cnf configuration in mysql. I hope the article will help you.
Mysql has the following types of logs:Error log: log-errQuery log: logSlow query log: log-slow-queriesUpdate log: log-updateBinary log: log-bin
[Client]Port = 3306Socket =/home/mysql
The following is a description of parameters in the my. cnf configuration file:
[Client]
Port = 3309Socket =/home/mysql/tmp/mysql. sock
[Mysqld]
! Include/home/mysql/etc/mysqld. cnf # contains the configuration file and stores the user name and password file separately.
Port
My. cnf cache optimization tips: MYSQL Tutorial: my. cnf cache optimization.
1. check the machine configuration. The three main parts are cpu, memory, and hard disk.2. check mysql configuration parameters.3. check the mysql row status. you can use the mysqlreport tool to vi
The following articles mainly describe the MySQL Configuration Parameter my. ini/my. for detailed analysis of cnf, we mainly configure the MySQL parameter my. ini/my. the actual operation steps of cnf are described as follows.1. Get the current configuration parametersTo optimize M
MySQL5.0 my. cnf configuration instructions (1) MySQL database 5.0 my. cnf configuration options overview:
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
In Linux, MySql inserts Chinese characters and reports an error (/etc/my. cnf does not exist). I read many posts, most of which refer to modifying my. cnf, as shown in http://www.bkjia.com/database/201303/196824.html However, this file does not exist. Is it due to rpm installation. Some people say cp/usr/share/my-huge.cnf/etc/my.
The following
Article It mainly describes the MySQL Configuration Parameter my. INI/My. for detailed analysis of CnF, we mainly configure the MySQL parameter my. INI/My. the actual operation steps of CnF are described as follows.
1. Get the current configuration parameters
To optimize
MySQL configuration file my. cnf example most detailed translation bitsCN.com # BEGIN CONFIG INFO
# DESCR: 4 gb ram, only InnoDB, ACID, a small number of connections, large queue load
# TYPE: SYSTEM
# END CONFIG INFO
#
# This mysql configuration file example is for 4G memory and is downloaded from www.bt285.cn bt and tested with www.5a5w.cn novel 520, ip add
MySQL5.6my. cnf parameter description
# The following options will be read by the MySQL client application. # Note that only client applications attached to MySQL can read this section. # If you want your MySQL application to obtain these values. # You need to specify these options when initializing the
MySQLmy. cnf parameter configuration optimization explanation bitsCN. comPS: this configuration file is for Dell R710, dual Xeon E5620, 16 GB memory hardware configuration. 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 co
MariaDB (Mysql branch) my. cnf configuration file Chinese comments version MariaDB
#/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 config
Ubuntu modify my. the cnf file causes mysql to fail to start. Recently, mysql was configured on the Virtual Machine. After installation, the character set is displayed as show variables like 'character % '; + bytes + | Variable_name | Value | www.2cto.com + bytes + | character_set_client | utf8 | character_set_connection | utf8 | character_set_database | latin1 |
MySQL database 5.0 my. cnf configuration options Overview:
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
This section describes the configuration options of MySQL database 5.0, And the configuration options of my. cnf.MySQL database 5.0 my. cnf configuration options Overview:Mysqld Program-directory and fileBasedir = 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 file
In Linux, mysql is often used to connect to the server every time:
[Root @ localhost ~] # Mysql-hlocalhost-uroot-p11111
Every time I enter the user name, password, and more people, is there a more convenient way?
We only need to simply configure the client section of my. cnf and put the username and password information in the client section. The configuration
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.