However, I am not going to describe the implementation details of a storage engine or the advantages and disadvantages of various storage engines. I just want to describe how MySQL handles BINLOG and clarify several obfuscation problems.
BINLOG is
For example, MSSQL is attached to disk D.
First, create an account, such as MSSQL, set the password, remember the password, and assign a group, such as guetst.Reverse disk D, attribute, security, advanced, add, enter the account name created,
CopyCode The Code is as follows: Decompress MySQL to D: \ mysql and edit my. ini.
[Mysqld]Port = 3306Basedir = "D:/MySQL /"Datadir = "D:/MySQL/data /"Tmpdir = "D:/MySQL/tmp /"Default-character-set = utf8Default-storage-engine =
Installation environment
Centos 1, 5.4
MySQL 5.1.xx is directly installed using rpm
Xtrabackup 1.2.22 directly installed with RPM
CopyCode The Code is as follows: [mysqld]
Server-id = 1
Log-bin
Innodb_flush_log_at_trx_commit = 1
Sync_binlog =
ERRNO: 256TEXT: SQLSTATE [HY000]: General error: 1436 Thread stack overrun: 4904 bytes used of a 131072 byte stack, and 128000 bytes needed. use 'mysqld-O thread_stack = # 'to specify a bigger stack.
According to the MySQL manual "The default (192KB)
1. view the Mysqld (/var/log/mysqld. log) log and find the following error:
InnoDB: Error: log file/usr/local/mysql/data/ib_logfile0 is of different size 0
5242880 bytes
InnoDB: than specified in the. cnf file 0 104857600 bytes!
030826 1:42:15 Can't
Copy codeThe Code is as follows: DELIMITER $
USE 'servant _ 591up' $
Drop procedure if exists 'SP _ move_data '$
Create procedure 'SP _ move_data '()
BEGIN
DECLARE v_exit int default 0;
DECLARE v_spid BIGINT;
DECLARE v_id BIGINT;
DECLARE I INT
I felt that the code was a little messy, and the comments and codes were written at random. There seemed to be no uniform specification, and there were also differences in the Code styles in different files. Maybe Mysql had gone through a lot of
The back_log value indicates how many requests can be stored in the stack within a short time before MySQL temporarily stops answering new requests. Only if you want to have many connections in a short period of time, you need to increase it. In
LEN (string_expression) parameter: string to be calculatedReturnsCharacter Count, Which does not contain trailing spaces.If the expression data type is varchar (max), nvarchar (max), or varbinary (max), it is bigint; otherwise, it is int.Ntext
In database optimization, it is one of the most common and effective methods to minimize the data size and minimize the space occupied by tables on the hard disk. Because of data reduction, the read/write speed of the hard disk can be improved, and
Method 1:
1. Table Structure
Use MySQL to generate the create script. Find the script to be exported and modify the Column Structure of the table created in the MySQL database according to the MySQL syntax.
2. Export table data
Use bcp on MSSQL to
After the 64-bit Windows 7 system is installed, many things are arranged, which is always the same. Yesterday, when we started to configure php + apache, echo phpinfo () was no problem, however, when you connect to mysql, the page is reset. The
The solution to reduce such problems is to minimize the server power failure without reason. When the server is shut down, the mysql database is closed manually.
Let's take a look at this problem:
Can't open file: '×××. myi' (errno: 145). This
This means that the database and table names are case-insensitive in Windows and are case-sensitive in most types of Unix systems. A special case is Mac OS X, which is used by the default HFS + file system. However, Mac OS x also supports UFS
We often use the MySQL replace function. The following describes the usage of the MySQL replace function in detail, hoping to enlighten you in learning the MySQL replace function.
I recently studied CMS and used mysql replace function during data
A beginner often asks me how to back up the database. The following describes three methods to back up the database:(1) Back up database files
Each database and data table in MySQL correspond to the directory in the file system and the files under
1. You can set collation for a table or row to binary or case sensitive. In MySQL, the naming conventions for Column Collate are as follows:
* _ Bin: binary case sensitive collation, that is, case sensitive.* _ Cs: case sensitive collation, case
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