The process of building a slave database based on the existing MySQL master database bitsCN.com
Build a slave database based on the existing MySQL master database
[Note ]:
Host 192.168.250.20
Backup machine 192.168.250.40
Master-slave replication
1. MySQL 5.1.53-log is available on the host.
2. if there is no mys
Mysql import and export Database> mysqldump-u root stg> H:/stg. SQL
> Mysqladmin-u create stg
> Mysqldump-u root stg
-------------------------------------------------------Mysql common data export commands:
1. mysql exports the entire database
Mysqldump-hhostname-uusername-ppassword databasename> backupfile. SQL
Mysqldump-hlocalhost-uroot hqgr> hqgr. SQL (if the root user does not use the password, you
When using a MySQL database, it is often necessary to back up and restore the database, and it is very convenient to export the SQL file backup and directly execute the SQL file recovery. This article focuses on how to export and import SQL files to the MySQL database through the cmd command.
Export
I. Exporting a database
cnf file above, no warning is reported )5.7>mysqldump--defaults-extra-file=my.cnf-> e:/5.7>Third, export database table structure and dataThe first kind:(report the warning, but the execution succeeds!)5.7>mysqldump-uroot-p123456-t exam9 >e:/interface can be insecure.The second type:( with the help of the cnf file above, no warning is reported )5.7\bin>mysqldump--defaults-extra-file=-T exam9 >e:/5.7 \bin>Iv. Exporting stored procedures and functions
In many web applications, we may encounter many scenarios where multiple rows of records need to be inserted dynamically. For example, on the talent website, when we fill in our resumes, we need to fill in our project experience. We can dynamically Add a number based on our actual situation, this is not added in the form of a separate page. This dynamic addition is dynamically added under the same page, and finally submitted to the server and saved to the database.In this article, I will use a s
This article is a MySQL in the Import and export database commands as well as functions, stored procedures for a detailed analysis of the introduction, the need for friends under the reference
MySQL Common Export Data command:1.mysql Export the entire database mysqldump-hhostname-uusername-ppassword databasename > Backupfile.sqlMysqldump-hlocalhost-uroot hqgr> Hqgr.sql (if the root user does not have a pas
Mysql common data export commands:1. mysql exports the entire databaseMysqldump-hhostname-uusername-ppassword databasename> backupfile. SQLMysqldump-hlocalhost-uroot hqgr> hqgr. SQL (if the root user does not use the password, you can leave-p. Of course, you can create a path for the exported SQL file. If it is not specified, it will be stored in the bin directory of mysql)
2. mysql exports a database tableMysqldump-hhostname-uusername-ppassword
In many Web applications, we encounter a lot of places where we need to dynamically insert multiple rows of records. For example, on the talent website, when we fill in the resume, we have to fill in our project experience, we can according to their actual situation dynamically add the number of, this is not a separate page to add, this dynamic add is on the same page dynamically added, and finally submitted to the server together to save to the database
This article is a detailed analysis of the import and export database commands in MySQL, as well as functions and stored procedures, which require a friend's reference:MySQL Common Export Data command:1.mysql exporting the entire databaseMysqldump-hhostname-uusername-ppassword databasename > Backupfile.sqlMysqldump-hlocalhost-uroot hqgr> Hqgr.sql # (if the root user does not use the password can not write-p, of course, the exported SQL file you can de
MySQL Common Export Data command:1.mysql Export the entire databaseMysqldump-hhostname-uusername-ppassword databasename > Backupfile.sqlMysqldump-hlocalhost-uroot hqgr> Hqgr.sql (if the root user does not have a password to write-p, of course the exported SQL file you can make a path, unspecified then stored in the MySQL bin directory)
2.mysql Export Database A tableMysqldump-hhostname-uusername-ppassword databas
(--no-data: Do not export any data, only export database table structure)-T data (--no-create-info: Export only data without adding a CREATE TABLE statement)-N (--no-create-db: Export only data without adding the Create DATABASE statement)-R (--routines: Export stored procedures and custom functions)-E (--events: Export event)--triggers (default export trigger, export using--skip-triggers mask)-B (--databa
This section relates to: Create a database, view a database, modify a database, delete a database Starting Time: 2018-02-13 20:47Create DATABASE: Syntax:Create database name [ library option ];Library Options Description:
Import the exported data into the database Mysql-u Root-pUse dbname;source Dbname.sql summary: -d structure (--no-data: Do not export any data, export only database table structure) -t data (--no-create-info: Export only data without adding a CREATE TABLE statement) -n (--no-create-db: Export only data without adding a CREATE DATABASE statement)
Tags: new checkpoint library file refresh data loss ever permissions database name allowed Summary article: Http://www.cnblogs.com/dunitian/p/4822808.html#tsql
Paste Error First:
Spit on the trough for a moment:
Go to the Chase:
Create a new database with the same name
Stop MSSQL Service
Replacing
statistical values to 0Onstat-g ATH Display threadONSTAT-G SEG Display Memory informationOnstat-g Rea Show Waiting threadOnstat-g Act shows active threadsOnstat-g IOF display Chunk Read and write informationOnstat-g IOQ Display AIO queue informationONSTAT-G NTU Display network port read and write informationONSTAT-G NTD display thread read and write information13. Programs that can be run under X-windows$ Onperf
I. Database NameIt is the name of the database you created when installing the Oracle software, or the data you created after installation. It is mainly used to install multiple databases in an Oracle database,The distinction between them. A database generates an oracle_service in the Windows Service. The
Mysql database: 1. PHP-obtain the number of rows of MySQL database query results: First, define a database interface function, which can be stored separately as a php page and on another php page, first, you must use the include function to include
First, you need to define a database interface function, which can be
After another year, I finally updated the version. However, this version only advances to a small bit, from 3.0 to 3.1.
The version number is small, which indicates that this change is not big, but let's talk about it:1: The latest CYQ. Data V5 series with better performance have been replaced, and the Data batch insertion speed has been improved.
2: Modify the image type and time type conversion of MySql.
3: Modify the table structure of Txt and Xml.
4: The error output is automatically record
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.