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
It seems that the string function of MySQL intercepts characters.
Program The interception (such as PHP or Java) is powerful, so we will make a record here and hope it will be useful to everyone.
Function:
1. Extract strings from the left
Left (
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 =
To randomly extract a record FROM the tablename table, the general syntax is: SELECT * FROM tablename order by rand () LIMIT 1.
However, I checked the MYSQL official manual. The prompt for RAND () indicates that the RAND () function cannot be used
Method 1. log on to mysql locally, change the "host" item in the "user" table in the "mysql" database, and change "localhost" to "%"
# Mysql-u root-prootMysql> use mysql;Mysql> update user set host = '%' where user = 'root ';Mysql> select host,
For versions earlier than 4.0, varchar (20) refers to 20 bytes. If UTF8 Chinese characters are stored, only 6 characters can be saved (3 bytes for each Chinese character)
Varchar (20) is a version later than 5.0. It can contain 20 characters,
1. How can I change the root administrator password of mysql at the win2K command prompt?
> Mysql-u root-pEnter password :******Mysql> use mysql;Mysql> update user set password = password ('new _ password') where user = 'root ';
In this way, you
MySQL supports several storage engines as processors for different table types. The MySQL storage engine includes the engine for processing transaction security tables and the engine for processing non-transaction security tables:
◆ MyISAM manages
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
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
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