Based on practical experience, this paper introduces an open source MySQL database innodb data recovery tool: Innodb-tools, which recovers data from lost or corrupted MySQL tables by extracting Row records from the original data file. For example,
First, two functions are used to handle database operations.
The MYSQLI connection is a permanent connection, and MySQL is a non-persistent connection.
The MySQL connection will reopen a new process whenever it is used for the second time, and
MySQL Import a large database tutorial file method
File Size 800MB
Method One
The above document generally means that, when you encounter a large import file, first check the PHP tutorial. ini configuration file in the following three places,
1. Integral type
MySQL data type
Meaning (Signed)
tinyint (m)
1 byte range ( -128~127)
smallint (m)
2 byte range ( -32768~32767)
Mediumint (M)
3 byte range ( -8388608~8388607)
Here is an example of using a date function. The following query selects all records and its date_col value is within the last 30 days:
Mysql> SELECT something from table
WHERE To_days (now ())-To_days (Date_col)
DayOfWeek (date)
Returns the week
MySQL sometimes forgets the root password is a sad thing. This provides a password reset method under Windows and Linux.
Windows:
1. Log in as a system administrator.
2. Open cmd-----net start to see if MySQL starts. Stop the net stop MySQL when
ALTER TABLE allows you to modify the structure of an existing table. For example, you can add or delete columns, create or eliminate indexes, change the type of existing columns, or rename columns or the table itself. You can also change the
We first look at the database permissions issues, and then do the following operation.
Sql:select value from [table]vars WHERE name= ' noteexists2′
Ucenter Info:mysql Query Error
Sql:select value from [table]vars WHERE name= '
ALTER table: Add, modify, delete table columns, constraints, and other table definitions.
View column: Desc table name;
Modify table name: ALTER TABLE T_book Rename to BBB;
Add column: ALTER TABLE name add column name varchar (30);
Delete column:
Navicat Mysql SSH tunnel can not use a springboard machine, for the need to log on the board of the host, his own SSH tunnel is a chicken. In fact, from the principle of analysis, there is no need to open his SSH tunnel, using the powerful SSH port
GitHub has officially announced the release of Gh-ost:github's MySQL no-trigger online Change table Definition tool in open source mode!Gh-ost was developed by GitHub in recent months to address a frequently encountered problem: changing product
Original address: http://www.biaodianfu.com/mysql-best-practices.htmlRecently looking at MySQL related content, collation of the following specifications, as a just learn MySQL rookie, finishing the content is very basic, the middle may involve the
One, what triggers1, personal understandingThe function of the trigger is to achieve synchronization between the two libraries, that is, the operation of library A and so on in the operation of library B, you can create a change on the table a
Recently in the collation of things about MySQL, to write down some things to record, in order to query and browse later, the following are some of the operational skills.Add a table fieldALTER TABLE table1 add transactor varchar (ten) not
Mysql monitoring and mysql monitoring tools
Mysql monitoring is one of the database monitoring modules, including collection, display, and monitoring alarms. This article describes the main metrics and collection methods of Mysql monitoring.
The
Mysql index types and advantages and disadvantages, mysql index advantages and disadvantages
An index is a special file (an index on an InnoDB data table is an integral part of a tablespace) that contains reference pointers to all records in the
Why use a trigger? Advantages of triggers 1. Trigger's "automatic"For programmers, the trigger is invisible, but he does. If no trigger is needed, when you update the name field of the user table, you need to write code to update redundant fields in
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.