MySQL Master-slave replication(Super Simple)How to install MySQL database, do not say here, just say its master-slave copy, the steps are as follows:1, the master-slave server for the following actions:1.1. Consistent version1.2. Initialize the
How MySQL imports a database
|
Views: 41023
|
Updated: 2012-11-01 19:45
1
2
3
4
5
6
7
Step through ReadingMySQL is a small and medium-sized relational database management system
Database operations
Create a databaseCreate Database character Set UTF8Deleting a databaseDrop Database name
Table Operations
CREATE TABLE: (Auto_increment, unique unique)--Create a new table Create TableT_user (IDbigint Primary
This time the installation of the Win7 under the installation of MySQL, started after encountering 1067 of the prompt, failed to start.This free-to-install MySQL has been installed on many machines, all smooth, this time encountered 1067 errors, or
for the general user like to compile installation or Yum installation, in my work, usually with a binary rapid installation, here the installation steps are recorded as follows:1. Download the binary file to the directory/home/www/tools[email
Purpose of the IndexIncreasing the efficiency of queries is equivalent to creating an alphabet or a radical table in a dictionary, so that the query is certainly much faster than a row of queriesThe length of each storage engine can be indexed is
#!/bin/bash#The scripts is writen for backup MySQL User XUSJ data.#Script name mysqlback.shBackupdir=/data/backupTime= ' Date +%y-%m-%d_%h_%m_%s 'Dbname=xusjDbpasswd=xusj01/DATA/MYSQL/BIN/MYSQLDUMP-U$DBNAME-P$DBPASSWD $dbname | gzip >
Excel column more than 160, import times wrong, the first line of Excel to save as a comma-delimited csv file, the shell to build a tableVim createtable.sh#!/bin/shStr= "Ca6430m,hmc6432,hmc6433e,hmc6433ee3a,hmc6433a4m0,hmc6433c3m0,hmc6433c4m0,hmc6434
After installing MySQL with Yum installed under CentOS, it was found that service mysqld start could not be turned onappear mysqld:unrecognized service, online others said with/etc/rc.d/init.d/mysqld start, still can't solve.Is it an installation
method is a bit stupid, but, did not find a better way, so first loaded, see if friends have the need, recordCentOS installation MySQL5.7 When there are various problems, all kinds of error, tried countless ways, today finally installed, hereby
System: CentOS6.6 64-bitRefer to the document (see the original URL): MySQL forgot root password under Linux How to do _ Baidu experience http://jingyan.baidu.com/article/1709ad80a8caf14634c4f013.html specific steps are as follows:
Modify the
1.Update Source listOpen "Terminal Window", enter "sudo apt-get update"-and "enter the root user's password"--return, you can. If you do not run the command and install MySQL directly, a "few packages cannot be downloaded, you can run the Apt-get
MySQL Partition Table Management ~ 1. mysql Partition Table Management
I. How to manage RANGE and LIST partitions
This partitioned table is used as an example.
CREATE TABLE members ( id INT, fname VARCHAR(25), lname VARCHAR(25), dob DATE)
Mysql DATE_FORMAT usage, mysqldate_format
DATE_FORMAT(date,format)
DateThe parameter is a valid date.FormatSpecifies the output format of the date/time.
Mysql DATE_FORMAT usage
%
Abbreviated name of a week
% B
MySQL Partition Table Management ~ 2. mysql Partition Table Management
I. Maintain partitions
For TABLE maintenance, we generally use the following methods: check table, optimize table, analyze table, and repair table.
These methods also apply to
Configuration of Hot Standby for MySQL database1. Mysql databases do not have an incremental backup mechanism. When the data volume is too large, backup is a big problem. Fortunately, the mysql database provides a master-slave backup mechanism,
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