A hot backup of MySQL on the primary server is required in the near future, i.e. data is synchronized in real time.Refer to the article as follows: http://369369.blog.51cto.com/319630/790921/My environment is as follows: Host a ip:42.62.25.47 from
MySQL data fileSince MySQL's data file structure is primarily related to the MySQL storage engine, there is no explanation for the content of each engine section. First, a little FAI teacher's tutorial; In MySQL, each database will have a folder
Source installation Mysql database : download mysql-5.6.15.tar.gzFirst set up the installation environment1. Create a mysql user group and system account Groupadd-r MySQLUseradd-r-G MySQL MySQL2.rpm-qa |grep MySQL To see if you have software
1. Download the Ubuntu version of MySQL2. Unzip MySQL3. Installationsudo dpkg-i mysql-common_5.6.21-1ubuntu14.04_amd64.deb mysql-community-server_5.6.21-1ubuntu14.04_amd64.deb Mysql-community-client_5.6.21-1ubuntu14.04_amd64.debError notification
MySQL Delete alias problem-log of meteor flame-NetEase Blog http://wzl3585493.blog.163.com/blog/static/7615611020126188377970/Delete from student s where s.id in (All-in);(Execution failed)Select s.* from student s where s.id in ();( executed
host:10-4-13-72 user:password:select_priv:n INSERT_PR Iv:n update_priv:n delete_priv:n create_priv:n drop_priv:n Reload_priv : N Reload Permissions table shutdown_priv:n process_priv:n Server Management file_priv:n load the file on the server
The value of a field in a database table is modified by the CMD command line to enable connection and access.The first step is to find the bin directory where the MySQL software is installed;(1) cd\ current directory(2) Specify the bin directory for
Mysql error-Modify mysql. sock location
Sometimes Mysql. sock location errors may occur in mysql, resulting in the inability to connect to the database.
When an error is reported in mac:
First modify my. cnf
The location is under/etc/my. cnf. If not,
Mysql optimization points section, mysql optimization Section1. Rationality of Database Table Design
1) three paradigms
1. paradigm: atomicity, attributes cannot be divided;
2. paradigm: No part of dependency,
Example: (student ID, course name) →
Use SQL statements to operate MYSQL character encoding-- View All character codes
Show character set;
-- View the commands for creating a database and the encoding used by the databaseShow create database dbtest;
-- View the database encoding:
Show
Slow mysql subqueryWhen you use the explain tool to view the execution plan of the SQL statement, if the select_type field contains "DEPENDENT SUBQUERY", you should note that, you have fallen into the slow mysql subquery "pit "... Let's look at a
Familiar with MySQL stored proceduresStored Procedure is a set of SQL statements for specific functions. It is compiled and Stored in the database, you can call and execute a stored procedure by specifying its name and giving a parameter (if the
[Mysql] the Mysql database processes Chinese characters transmitted in Servlet.
The default encoding of many Mysql instances is latin1. If Mysql does not change the encoding during installation, it cannot be entered into Chinese directly and
Mysql master-slave configuration parameters and stepsMaster-slave configuration steps:Create the database to be synchronized in the master database, create the account of the master database, and modify the configuration of the master and slave
Usage of input, out, And inout parameters in MySQL stored proceduresStored procedure parameters: You can declare parameters in the brackets of the stored procedure. Syntax: create procedure p ([in/out/inout] parameter name parameter type ..) in:
Differentiation between after and before for MySQL triggerAfter: add, delete, modify, and then trigger the data. The triggered statement is later than the added, deleted, and modified statement, which cannot affect the previous add, delete, modify,
Back up the MySQL database in linux and delete the Backup Data seven days ago
#! /Bin/bash # backup database hz jshuabo sdhuaboname =$ (date + % Y % m % d) /alidata/server/mysql-5.1.73/bin/mysqldump-u root-p123456 hz>/root/sqlBackup/hz. $ name. SQL/
Create a MySQL slave Database
We know that Oracle has DataGuard to back up data in real time, which can be used for master-slave switchover. MySQL also has its own backup database solution, which is called master-slave replication.
The MySQL slave
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