1 download the corresponding mysql installation source package address: http: devmysqlcomdownloadsmysql51html2 if you have installed it before, Uninstall unused installed mysql because many linux releases, the corresponding mysql is pre-installed,
MYSQL installation guide
After learning linux for a long time, it is necessary to take notes. The following are mysql installation notes and common usage methods.Because I like debugging and optimizing the system, I used some options during
Use mysqldump of the mysql database to implement automatic backup of mysqldump
Mysql database mysqldump can be used for Database Backup. if crontabs is configured in linux, automatic backup can be implemented!
#! /Bin/bash
# Configure the
MySQL5.0 new features tutorial stored procedure: Fourth lecture Error Handling exception Handling
Okay, now we want to talk about exception handling.
1. Sample Problem: Log Of Failures Problem example: fault record
When INSERT fails, I want
MySQL Chinese Reference Manual-get database and table information if you forget the name of a database or table, or what is the structure of a given table (for example, what is its column name ), what should I do? MySQL solves this problem by
MySQL database Security Configuration Guide (1) [group chart] 1. Preface
MySQL is a fully networked cross-platform relational database system and a distributed database management system with a client/server architecture. It has the advantages of
MySQL stored procedures and triggers use the explain Test table structure:
CREATE TABLE `a` ( `id` INT(10) UNSIGNED NOT NULL AUTO_INCREMENT, `cnt` INT(11) NULL DEFAULT NULL, PRIMARY KEY
Mysqlndb cluster backup database and restore database methods Mysql Cluster
BitsCN.com
At noon, I understood the backup and recovery of the MYSQL Cluster.
Write it down. you don't have to waste time on this issue.
1. back up data on the management
MHA bitsCN.com for MySQL high availability kill
Many people think of MySQL Cluster or Heartbeat + DRBD when it comes to the high availability of MySQL. However, the complexity of these solutions is often daunting, using MySQL replication to
Database System anti-hacker intrusion Technology Overview bitsCN.com 1. Preface
With the rapid development of computer technology, the database has been widely used in various fields, but data security issues have emerged. Security issues of a large
In-depth MySQL database index bitsCN.com
Indexes are the main means to accelerate table content access, especially for queries involving connections to multiple tables. This is an important part of database optimization. we need to understand why
Automatically generate mysql trigger code for data synchronization bitsCN.com
If there are hundreds of tables in the company to trigger, if you manually write code. Very tired, so today I wrote a small program to automatically generate the mysql
Mysql Procedure parameter is NULL problem analysis bitsCN.com
An interesting thing was found during the recent writing process. Mysql procedure has its own unique processing method when passing parameters. For example, if the parameter is defined as
Mysql is a master-slave problem-log synchronization data is not synchronized bitsCN.com
I set up mysql for master-slave replication.
The mysql environment of the two machines is identical
Part 1 test:
Synchronization test for master A and slave
Mysqldump how to remotely back up mysql database mysqldump
BitsCN.com
The user who uses mysqldump to back up the database requires a relatively small amount of permissions. only the select and lock table permissions are required. Therefore, users
Default mysql does not support functions and sets the default time bitsCN.com.
The default value of mysql does not support functions and the default time is set. Java code because the default value of the current MySQL field does not support
Mysql queries the data of bitsCN.com every other day for one day and one week.
Mysql queries data from one day, one week, and the other day
-- Query a day
Select * from tbl_order where date (tbor_create_time) = curdate ();
Select * from
Queries the disk space used by all databases in mysql and the size of all tables in a single database bitsCN.com
Query the disk space used by all databases in mysql and the size of all tables in a single database
SQL code
Select TABLE_NAME,
Mysql versions later than 5.0.17
Mysql versions later than 5.0.17 deal with ''and null
After MySQL is upgraded to 5.0.17, execute the SQL statement
Insert INTO 'table name' () VALUES ();
Error:
#1264-Out of range value for column ''at row 1
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