Backing up and restoring databases with MYSQL delimiters is more powerful than SQL files.

In the second version of High Performance Mysql, we can see the time-consuming comparison between SQL files and delimiter files during Backup and restoration.Method file size export time restore timeSQL dump 727 M 102 s 600 sDelimited dump 669 M 86

Example of using if in mysql statements

Select *, if (sva = 1, "male", "female") as ssva from taname where sva <> "" 12.2. Control Flow FunctionsCASE value WHEN [compare-value] THEN result [WHEN [compare-value] THEN result...] [ELSE result] end case when [condition] THEN result [WHEN

Tips and applications: MySQL database FAQs

MySQL database is an open source database based on structured data. SQL statements are the core language of MySQL databases. However, when executing SQL statements in the MySQL database, you need to be careful with two traps. Trap 1: NULL values are

Mysql beginners must learn the statement Arrangement

MySQL adds, modifies, and deletes columns. alter table: adds, modifies, and deletes TABLE columns, constraints, and other TABLE definitions. View column: desc table name;Alter table old _ name rename to new_name;Add column: alter table name add

MySQL database performance optimization solution

MySQL database performance optimization solutionThe actual operating scheme for database performance optimization. With the continuous development of MySQL database, the performance optimization of MySQL database has become more and more important.

Compile and install mySQL5 in CentOS 6

I. Preparations1. Install and install CentOS6 quickly.2. Install the library file required for mysql compilation. In this case, you can choose to use the CD yum.[Root @ admin share] # cd/media/[Root @ admin media] # mkdir CentOS[Root @ admin media] #

Command and related knowledge for starting MySQL in Linux

I. Summary:1. Run the following command to start MySQL in Linux:/Ect/init. d/mysql start (the installation path of mysql is earlier)2. Command for restarting mysql in linux:/Ect/init. d/mysql restart (the installation path of mysql is earlier)3. Run

Mysql Installation notes

# Useradd mysql-s/sbin/nologin# Wget http://downloads.mysql.com/archives/mysql-5.1/mysql-5.1.54.tar.gz# Tar zxvf mysql-5.1.54.tar.gz# Cd mysql-5.1.54#./Configure -- prefix =/usr/local/mysql-- With-mysqld-ldflags =-all-static // compile the server in

Use mysqldumpslow and mysqlsla to analyze mysql slow query logs

Use mysqldumpslow and mysqlsla to analyze mysql slow query logsMySQL optimization is not a permanent task, but a constant battle. Among them, the analysis of slow query logs is an important method. I used to look at it manually. However, this is not

Mysql master-master replication architecture configuration

The master-slave replication structure of MySQL is different from the master-slave replication structure. In the master-master replication structureIf the data stock on one server changes, it will be synchronized to the other server, so that the two

JDBC obtains the Mysql auto-increment field code

Mysql aotu_increment is often used in master-slave relationships. MySQL does not have a specific sequence of oracle. In addition, the previous project used select max (*) to implement this function. Later, compared to the max (*) method, it was

MySQL dual-master-slave Configuration

1) Two mysql servers A and B1. edit/etc/my. cnf for server Parameters [Server A]Server-id = 1Binlog-do-db = testBinlog-ignore-db = mysqlReplicate-do-db = testReplicate-ignore-db = mysqlMaster-host = 192.168.20.195Master-user = replMaster-password =

Error handling when MySQL 5.1 is upgraded

Mysql in the production environment is upgraded from 5.0 to 5.1 today. An error is returned in the result log, as shown below:Event schedaliz: An error occurred when initializing system tables. Disabling the Event Scheduler.Mysql. user has no 'event

Unified Character Set setting of mysql

I recently created a project with database garbled characters. I don't know how to set it in phpmyadmin. Let me go !! I thought it was definitely because the character set settings were inconsistent, php encoding was correct, and UTF-8 character set

Accurate SQL statement for deleting completely duplicated data in mysql

Case:Id name Course name score1 Zhang San math 692 Li Si math 893 Zhang San, mathematics 69Delete redundant student information that is identical except for automatic numbers Bytes ---------------------------------------------------------------------

Six tips for optimizing MySQL database performance

  On the surface of the database table, there is an index and error prevention mechanism. However, a simple query takes a long time. Web applications may run well in the development environment, but are equally bad in the product environment. If you

Mysql database AB replication Configuration

Use two mysql servers to implement AB and master-slave replication. 1. Configure the MASTER server MASTER 172.16.1.3BACKUP 172.16.1.2 1. Edit the my. cnf File# Add the two rows on the original basis [Root @ zhaoyun ~] # Cat/etc/my.

Mysql executes show processlist to solve the problem of "unauthenticated user"

An unibilling machine suddenly experienced heavy loads a few days ago. it is found that cpu usage is high in top. the agi program runs slowly and a zombie process occurs. in fact, there were only about 50 concurrent calls at that time. far below

Linux MySQL Master/Slave synchronization fails, and an error 1594 is returned

The master-Slave synchronization of mysql fails. the following error is reported in the log: 120309 18:39:23 [Note] Slave SQL thread initialized, starting replication in log 'mysql-bin.000004 'at position 2207467, relay log '. /mysqld-relay-bin.00001

How to install Mysql in Ubuntu

Installing MySQL sudo apt-get install mysql-server should be simple, and I don't think there is much problem with installation, so I will not talk about it much. Let's talk about the configuration below. Configure MySQL. Note that in Ubuntu, MySQL

Total Pages: 3233 1 .... 1667 1668 1669 1670 1671 .... 3233 Go to: GO

Contact Us

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

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.