Write a step in liunx to regularly delete data in MySQL.

First, create a file directory. Mkdir myfile VI: Create and modify a fileVI delradiusdata CopyCodeThe Code is as follows: VI is a common tool used to create and edit files in Linux. The startweblogic. Sh script has been created below as an

Mysql automatically backs up databases and deletes temporary files in linux

1. automatically delete temporary files at every day First, check the crontab task list:Crontab-lThen create:Crontab-eAdd a row:00 03 *** rm-rf/www/cmstest/my120/public/scripts/jpgraph /*Save and exit.Restart the service:/etc/rc. d/init. d/crond

Tips on mysql

1. How to solve the problem of slow import of large batches of disordered data into InnoDB?Because of the primary key clustered index relationship, InnoDB is slower and slower to import without a primary key or non-sequence primary key. How can we

Mysql query cache description

Perform a detailed analysis on mysql Query Cache from five perspectives: Query Cache working principle, how to configure, how to maintain, how to determine the Query Cache performance, and suitable business scenario analysis. Working Principle The

View and modify the mysql encoding method so that it supports Chinese (gbk or utf8)

The default encoding of MySQL is Latin1, which does not support Chinese characters. To support Chinese characters, you must change the default encoding of the database to gbk or utf8. 1. You need to log in as the root user to view the database

How to Avoid unique indexes during MySQL batch insertion

I,Background In the past, when I used SQL Server to partition a table, I encountered a lot of questions about unique indexes: Step 8: SQL Server. When the table partition encounters a unique constraint, I did not expect this problem to occur in

MySQL study Note 3: basic table operations

To operate a table, you must first select a database because the table exists in the database. Select Database Mysql> use school; Database changed After selecting the database, we can create tables in this database. Create a table Mysql> create

Mysql data folder location search

Find the installation location of your mysql database, as shown below:C: \ Program Files \ MySQL Server 5.1, which contains the my. ini file. Find the following lines:[Mysqld] Copy codeThe Code is as follows: # the TCP/IP Port The MySQL Server will

Mysql garbled Problem Analysis and Solution

During the development process, you cannot avoid spam or a series of problems caused by spam. Garbled characters are the cause of character sets. They generally do not have much to do with the logic. That is to say, there is no problem in the

New mysql users cannot log on.

Install openstack folsom today. After installing mysql and adding corresponding databases and users to various services, you will find that You cannot use the new user to log on to mysql. The method for adding users is as follows: Mysql-uroot-p $

Usage of mysql initial execution File

You can specify the SQL file initially executed after mysql is started in the configuration file. Its syntax is:In [mysqld] or [server], specify:Init-file = D: \ mysql-5.5.28-winx64 \ abc. SQL, followed by the specific SQL file valuePay attention to

In-depth analysis of mysql transaction processing and table lock

There are two main methods to process MYSQL transactions. 1. Use begin, rollback, and commit to implement Start a transaction Rollback transaction rollback Commit transaction validation 2. directly use set to change the mysql automatic submission

MySQL performance solution for deleting large tables

On Weibo, we will discuss how MySQL can reduce MySQL hang time When deleting a large table engine = innodb (30G +). Here is a brief summary: When buffer_pool is large (30 GB +), because the table is deleted, the entire buffer pool will be

Introduction to innodb Lock classification in mysql

I. innodb row lock Classification Record lock: record lock, that is, only a single row is locked.Gap lock: interval lock. Only one interval is locked. (Note that the interval here is an open interval, that is, the boundary value is not

Mysql user password modification graphic Introduction

Directory Mysqladmin command UPDATE user statement Set password statement Root Password loss (to be verified) Mysqladmin command (Back to directory) The format is as follows (USER is the USER name and PASSWORD is the new PASSWORD ): Mysqladmin-u

Mysql trigger for data synchronization between two tables

Mysql uses a trigger to synchronize two tables Currently, the local test is successful. Assume that two local databases a and B have table1 (id, val) and table2 (id, val) in table) Assume that you want to synchronize data updates in table 1 and

How to obtain the intersection of MySQL query results

1 How to implement the following SQL query in MySQL (Select s. Name From student s, TRANSCRIPT T Where s. StudId = T. StudId and t. CrsCode = 'cs305 ') INTERSECT (Select s. Name From student s, TRANSCRIPT T Where s. StudId = T. StudId and t. CrsCode

Introduction to mysql fuzzy search

I checked it online. There are two methods: the first is the most earthy method: Use the like statement, and the second is the full-text index. I will search it online: how to get better full-text search results in MySQL Many Internet applications

MySQL million-level paging optimization (Mysql 10 million-level fast paging)

Here is my experience This is generally the case when you first start to learn SQL.Copy codeThe Code is as follows: SELECT * FROM table order by id LIMIT 1000, 10; However, when the data reaches the million level, writing will slow down.Copy

Summary of statements used to back up and restore a MySQL database in Command Line Mode

For the sake of security, you need to back up or restore the database frequently. For MySQL, the most convenient method is to use the Export and Import functions of phpMyAdmin. However, if your database is large, phpMyAdmin, a Web application, may

Total Pages: 3233 1 .... 2869 2870 2871 2872 2873 .... 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.