The parameter configuration of my. cnf optimizes the performance of the InnoDB engine, and my. cnfinnodb
I have read numerous my. cnf configurations on the Internet. Most of the configurations mentioned are similar to the following:
1. innodb_buffer_pool_size2. innodb_log_file_size3. innodb_log_buffer_size4. innodb_flush_log_at_trx_commit
Then I wrote two examples, one single thread and one multi-thread, to
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 configuration files based on the operating system platform,# You can copy the template configura
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 | bytes | binary | utf8 | | character_set_server | latin1 | character_set_system | utf8 | c
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/tmp/mysql. sock[Mysqld]! Include/home/mysql/etc/mysqld. cnf # contains the configurat
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 directory.
Pid-file = filename specifies a fi
MSet-variable = sort_buffer = 128 MSet-variable = read_buffer = 2 MSet-variable = write_buffer = 2 M
[Myisamchk]Set-variable = key_buffer = 128 MSet-variable = sort_buffer = 128 MSet-variable = read_buffer = 2 MSet-variable = write_buffer = 2 M[WinMySQLadmin]Server = D: // mysql/bin/mysqld-nt.exeThis solution is sufficient, but research is required on pconnect and Max connections.Max_connections does not need to be so big. I personally think that a few hundred is enough. Otherwise, it will incr
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 parameters, you must first understand the current configuration parameters and running conditions
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 example is as follows:
# The following options will be passed to all MySQL clients
18
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 = 3309Socket =/home/mysql/tmp/mysql. sockPid-file =/longxibendi/mysql/var/mysql. pidBasedir =/home/mysql/Datadir =/longxibendi/mysql/v
Org.eclipse.ui.navigator.navigatorContent Right-click New Commonfilter ID: Unique Name: Names such as: *.xml resources Description: Description, such as: Hides *.xml resources In the property download Add property: Where value is a wildcard XML Add Contentextension in includes under the Com.itec.rcp.navigatorContent property After the configuration is complete, launching the Navigation view does not load the project we created. Need to register in Applicationworkbenchadvisor.java Add two meth
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 files from a given directory.Pid-file = filename
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 future.The steps are as follows. The installation and deletion process has been repeated severa
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 MySQL client database. # [Client] # password = [your_password] port = @ MYSQL_TCP_PORT @ socket = @ MYSQL_UNIX_ADDR @ # *** application customization
This article describes how to optimize MySQL configuration file my. cnf. For more information, see MySQL 5.5.13.
Parameter description:
[Client]
Character-set-server = utf8
Port = 3306
Socket =/data/mysql/3306/mysql. sock
[Mysqld]
Character-set-server = utf8
User = mysql
Port = 3306
Socket =/data/mysql/3306/mysql. sock
Basedir =/usr/local/webserver/mysql
Data =/data/mysql/3306/data
Log-error =/data/mysql/3306/mysql_error.log
Pid-file =/data/mysql/330
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 (only applicable to UNIX/Linux systems). The
From: http://blog.csdn.net/windy444/archive/2007/12/31/2006304.aspx
Translated by windy444.
Original article name: Building a common navigator framework (CNF) viewer Part II: adding content, Author: Michael elder, source:Http://scribbledideas.blogspot.com/(I have never been able to open it ).
Copyright first
The opinions and ideas expressed tables are my own and do not represent the intent, opinion, or official statement of any company or organizatio
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_connection = utf8_unicode_ci'init_connect='SET NAMES utf8'character-set-server=utf8collation-server=utf8_unicode_ciskip-character-set-client-han
', MASTER_PASSWORD = 'secret ';## Or:##2) set the following parameters. However, once you select this method,# When the master-slave replication is started for the first time (even if the replication fails to be started, for example, the wrong master-password,# Leading to poor slave connection), slave will create a file named master.info,# If you modify these parameters in this configuration file (xxx. cnf) later,# Continue to use the content of the m
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.