MySQL master-slave database configurationHow to configure MySQL master-slave database
First make sure the MySQL version on the master and slave server is the samePrimary database server configuration:1. Modify the configuration file of the
MySQL query queries a time record through a field of date type2010-04-29 16:22:34| Category: Default categories | report | font size subscription download Lofter clientSELECT * FROM Wap_content where week (created_at) = Week (now)If you want to be
Log in to MySQLMysql-p Enter Password login1. View MySQL versionMySQL > select version () or you can log in to MySQL with a large output message, which also contains version information650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M00/6C/6D/
Long time no blog, the recent technical study is very few. Don't say much, go straight to the chase.It is recently necessary to open the MySQL update log (that is, binary log) under Linux, which can be used to avoid database errors or data loss
today in the experiment about xtrabackup MySQL does not come up, after the check found to be the issue of permission settings. From this thought in the daily work will appear MySQL can not start the problem, here to build a post, the problems
Group_concat (expr)This function merges non-empty column values into grouped conditions and ultimately return. If there is a null value, the return is empty, and its complete syntax is as follows:Group_concat ([DISTINCT] expr [, expr ...][ORDER
Types of connection operations (1) SYSTEM Const exception, when there is only one tuple match on the table (2) CONST When the Where condition is filtered, there is at most one tuple match on the table, such as WHERE id = 2 (ID is the primary key,
"Maintenance and optimisation of the work"① Maintaining data dictionaries② Maintaining Indexes③ Maintaining table structure④ horizontal split or vertical splitting of a table at the appropriate time"Maintain Data dictionary"A data dictionary is
Modify Mysql Password
C:\Program files\mysql\mysql Server 5.1\bin>mysqladmin-u root-p password 123456
Enter Password
MySQL Startup error 1053: Service does not respond to startup or control
MySQL maximum number of connections by default is only 100, when users access to a database with the site or forum, will cause the MySQL service CPU usage increases, and can not provide services.[[Email protected] ~] #vim/etc/my.cnfLocate the
First, use the MySQL built-in command mysqldumpUsage:mysqldump [OPTIONS] database [tables]mysqldump [Options]--databases [options] DB1 [DB2 DB3 ...]mysqldump [Options]--all-databases [options]You can see that you can back up all the databases, the
Mysql Study Notes 10 (mysql operator)
The operators provided by mysql include Arithmetic Operators, comparison operators, logical operators, and bitwise operators. Arithmetic Operators include: +-*/% 1. After obtaining various arithmetic operations,
MySQL encoding format
I. Problem Introduction
When mysql is installed, the encoding format is configured as UTF-8. Therefore, mysql character_set_client, character_set_connection, character_set_database, character_set_results, character_set_server,
Mysql Date and Time Type
Current_time display current time now () display current date and time type YEAR 1 byte 1901 ~ 2155 zero value 0000 DATE 4 byte 1000-01-01 ~ 9999-12-31 0 value 0000: 00: 00 TIME 3 bytes-838: 59: 59 ~ 838: 59: 59 zero value 0
MySQL inserts fields with the same value as the auto-increment primary key and ensures data accuracy at high concurrency.
Scenario: Table t2 contains an auto-incrementing primary key id and field v. When a record is inserted, the values of v and id
Mysql study note 5 (trigger)
Trigger is one of mysql database objects. This object is very similar to functions in programming languages and must be declared and executed. However, trigger execution is not called by a program, it is not manually
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