SQL formatting tool set bitsCN.com
The first online formatting tool:
Instant SQL Formatter
Powerful functions, configurable
In the second section, similar to the first section, the functions are the same, but they are different UIs.
The third
Use an SQL statement to extract the char in blob and convert it to a number and save it to another field bitsCN.com.
This requires a table structure, designed
But now we need to save the data in the 17, 18, and 19 fields in blob as numbers to
Description of MySQL database varchar restriction rules bitsCN.com
MySQLDatabaseVarcharWhat is the maximum length? In fact, this is not a fixed number. the length of varchar isRestriction rules. In this article, we will introduce the varchar
Mysql master/slave database non-synchronization problem solution bitsCN.com encounters such an error as: "Last_IO_Error: Got fatal error 1236 from master when reading data from binary log: 'Could not find first log file name in binary log index file'
Solve the problem of slow remote connection to mysql (mysql_connect slow connection) bitsCN.com finds that network communication is normal after ping and route, and it is very fast to perform local connection on the mysql machine, therefore, network
Master-slave synchronous backup procedure (unidirectional synchronization) for mysql databases in windows bitsCN.com
Implementation of mysql two-way synchronous backup in windowsThe following articles mainly describe the correct operation solution
In mysql data synchronization, Slave_IO_Running: the solution to the No problem is summarized below bitsCN.com. if the two are no, how can we restore them ..
If slave_io_running is no, I personally think there are three situations. One is that
Mysql is starting InnoDB: Error: logfile. ib_logfile0isofdifferentsize05242880bytes problem bitsCN.com if your configuration file uses something like a my-innodb-heavy-4G.cnf as the configuration file.
Mysql can be started normally, but innodb
Configure the MySQL parameter my. inimy. detailed analysis of cnf bitsCN.com the following article mainly describes the MySQL configuration parameter my. ini/my. for detailed analysis of cnf, we mainly configure the MySQL parameter my. ini/my. the
Common MySQL database commands: simple, super simplified bitsCN.com
1. MySQL common commandsCreate database name; create a database
Use databasename; select database
Drop database name directly deletes the database, no reminder
Show tables; displays
Instructions for using PHP functions (Supplement): instructions for using bitsCN. comPHP functions, application examples, and simplified comments. I hope this will help you learn php.
1. print_r ()
Prints easy-to-understand information about
In linux, the mysql automatic backup script code bitsCN.com is stored in/home/user/mysql_backup.sh.
Crontab
# Crontab-l
# M h dom mon dow command
28 16 ***/home/user/mysql_backup.sh
The script is as follows:
#! /Bin/sh
# Mysql_backup.sh: backup
MYSQL uses. frm to restore the data table structure implementation method bitsCN.com. we all know that when we create a data table (innodb or myisam), a corresponding file (such as MYD, MYI, frm) will be generated)
Here, we will discuss how to use
Statement bitsCN.com for obtaining the last record in MYSQL
In MySQL, the auto_increment type id field is used as the primary key of the table and as the foreign key of other tables to form a "master-slave table structure". This is a common usage
MysqlLOAD statement batch data entry bitsCN.com fortunately, MySQL provides some methods for batch data entry, making it easy to add data to the table. This section and the next section describe these methods. This section describes the SQL language-
Solve the problem of Mysql5 character set encoding bitsCN.com we follow the standards that the encoding of databases, tables, fields and pages or texts should be unified.
Many mysql database tools (except phpmyadmin, which are occasionally used and
Mysql date and time format conversion implementation statement bitsCN.com here is an example of using the date function. The following query selects all records. The value of date_col is within the last 30 days:
Mysql> SELECT something FROM
Mysql backup and migration data synchronization method bitsCN.com recently found that this visualization operation has some problems, that is, when the number of data entries exceeds a certain number of EMS SQL Manager, it will be suspended, and it
The syntax for batch replacement of the string bitsCN.com in the specified MySQL field is as follows:
UPDATE table name SET
Specify field = replace (specify the field, 'replacement string', 'desired string ')
WHERE condition;
If you want
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