How to release disk space by clearing expired binlogs on 128 group of nodes in batches

If there are less than 10 databases, You can manually enter ssh, and clean is enough. But if there are hundreds of databases, you have to write scripts. General idea: On a db jump machine, write a script to access slave, remotely obtain the binlog

MySQL Query Optimization-index application details

Bad SQL query statements can have a serious impact on the operation of the entire application. They not only consume more database time, but also affect other application components. Like other disciplines, optimizing query performance is largely

How to use SQL to find columns with different values in two tables

The following two tables have the same structure. use SQL to find columns with different values. Student_1 NAME AGE SCORE Peter 26 100 Jack 25 96 Daniel 26 48 Bark 21 69

How to Use the command line to enter mysql

How can I use a command line to access mysql? I have not seen a friend raise such a question on the Forum recently. Some netizens have also given the answer, and I would like to share it with you here!A free version of software for converting Mysql

Mysql super large data/table management skills

If you are not interested in the long article, you can also look at the results directly. Maybe you are interested in the results. In practical applications, after storage and optimization, the query response speed can be controlled within 1 to 20

Solutions to errors reported during 6 GB Database Import

Tool Selection I. Sqlyog is a powerful tool, but in the face of a 5G database, it can only strike, simply put, the local import can be, from the local import server can not.II. Phpadmin comes with this, but it's okay, but it's never used in the end,

Settings and problems related to the auto-increment auto_increment function in mysql

The auto-increment auto_increment function in mysql is believed to have been used by every phper and knows how to set the field to an auto-increment field. However, not all phper know how to set the starting value and increment value of

How to rapidly insert millions of test data records in mysql

For comparison, the first step is to use the mysql stored procedure:Copy codeThe Code is as follows:Mysql> delimiter $Mysql> set autocommit = 0 $Mysql> create procedure test ()BeginDeclare I decimal (10) default 0;Dd: loopInsert into 'million'

How to modify mysql Character Set and Database Engine

MySQL Character Set: cp1252 West European (latin1) to solve the garbled ProblemWhen you use phpmyadmin In the VM space to operate the database, if the MySQL Character Set displayed on the phpmyadmin homepage is cp1252 West European (latin1), garbled

Mysql (MyISAM) read/write mutex lock Solution

Because there is no way to add a read server in a short period of time, we have made some configuration for Mysql to sacrifice the real-time data, in exchange for the life security of all servers. The specific adjustments and ideas are as

How to protect important data in MySQL

The most valuable asset of an enterprise is usually the customer or product information in its database. Therefore, an important part of database management in these enterprises is to protect the data from external attacks and repair

MYSQL random extraction query MySQL Order By Rand () efficiency issues

To randomly extract a record FROM the tablename table, the general syntax is: SELECT * FROM tablename order by rand () LIMIT 1.However, I checked the MYSQL official manual. The prompt for RAND () indicates that the RAND () function cannot be used in

An example of mysql master-slave synchronous replication error Solution

This afternoon, I copied the data from mysql. After all the servers are configured, I found that the following errors were reported.Copy codeThe Code is as follows:Last_IO_Error: Fatal error: The slave I/O thread stops because master and slave have

Mysql5.5 master-slave (Replication) master-slave Configuration

One master and one slave:Master:OS: centos release 5.6 DB: mysql 5.5.8 IP: 192.168.1.2Slave:OS: centos release 5.6 DB: mysql 5.5.8 IP: 192.168.1.3Modify the host Master configuration file (/etc/my. cnf)Copy codeThe Code is as follows:[Mysqld]// At

How to modify the default password of mysql in WAMP

First, open the mysql console through WAMP. Prompt to enter the password. Because it is empty, press Enter. Then enter"Use mysql", Which means to use the mysql Database and prompt" Database changed. Then enter the SQL statement"Update user

Solution to non-synchronization of mysql Master/Slave Databases

The following error occurs: "Last_IO_Error: Got fatal error 1236 from master when reading data from binary log: 'Could not find first log file name in binary log index file', or the Master/Slave database is not synchronized due to data clearing. The

How to thoroughly uninstall MySQL

Reinstalling the system is always a good solution, but who would like to do so :(Later, I did not intend to find that the uninstallation was not completely caused by the uninstallation. The following describes how to unmount MySQL 5.1:1. add and

The problem of mysql calling the Stored Procedure multiple times

The problem is that when you directly use mysql c api to build an application, a connection can only execute a stored procedure once, no matter how free we use this connection again, there will be a prompt that we cannot execute qurry. I think such

Solution to garbled characters when importing data from MYSQL database

First, when creating a database, be sure to generate the same encoding format of the original database. If the database has been generated, use phpmyadmin and other tools to organize it again to prevent garbled characters caused by inconsistent

Mysql database backup and recovery command mysqldump, source usage

Restore A Database: mysql-h localhost-u root-p123456 www Back up a database: mysqldump-h localhost-u root-p123456 www> d: \ www2008-2-26. SQL// Test in the program// $ Command = "mysqldump -- opt-h $ dbhost-u $ dbuser-p $ dbpass $ dbname | gzip> $

Total Pages: 3233 1 .... 1227 1228 1229 1230 1231 .... 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.