MySQL scheduled execution script (scheduled task) instance

Run the following code to check whether the event is Enabled: showvariableslike % sche %; run the following code to enable the event plan: setglobalevent_scheduler1; run the following code to create the stored procedure test: CREATEPROCEDUREtest ()

How to add new functions to MySQL

There are two ways to add a new function for MySQL: you can add a function through the UDF interface. The custom function is compiled as the target file, and then dynamically added to and removed from the server using the CREATEFUNCTION and

Suggestions for improving SQL Execution Efficiency

Suggestions for improving SQL Execution efficiency: do not include subqueries in where; Do not write time queries as follows: whereto_char (dif_date, yyyy-mm-dd) to_char, yyyy-mm-dd); in the filter condition, the condition for filtering the maximum

How to optimize the MySQL server

Nowadays, developers are constantly developing and deploying LAMP (Linux? , Apache, MySQL, and PHPPerl) architecture applications. However, the server administrator often has no control over the application itself, because the application is

How to restore SQL server data through Logs

During this time, I read about restoring data in SQLserver through Logs and time points. I also read some online examples to see how to restore data through logs. Prerequisites: the fault recovery mode of the database is changed to non-simple mode,

How to deal with MySQL password forgotten

Solution to MySQL password forgetting: 1. Stop the mysql service. Open the command line window and stop mysql service: netstopmysql2. Start mysqlgenerally to install mysql. Find mysqld-nt.exe and execute: mysqld-nt -- skip-grant-tables. The current

Parse the differences between ReplaceINTO and INSERTINTO in SQL statements

This article gives a detailed analysis of the differences between ReplaceINTO and INSERTINTO in SQL statements. If you need a friend, the operation of REPLACE is similar to that of INSERT. There is only one exception. If an old record in the table

SQL statement used by MySql to obtain the table in which a field exists

This article describes in detail which table of a field is queried through MySql. The specific SQL statement is as follows. If you are interested, refer, we hope to help you copy the code as follows: SELECTTABLE_SCHEMA,

Share the differences between major mysql versions

I. Differences Between Common commands for various versions showinnodbstatusGmysql-5.1showenginesinnodbstatusGmysql-5.5 about grant authorization mysql-5.5 user @ % does not contain localhost II, MySQL4.15.05.15.55.6 major differences between

Use Shell scripts to implement remote MySQL automatic Query

The following script is a simple command used to execute remote database queries. I believe everyone can understand it. This is for some brothers who need to automatically check the database or execute certain statements every day, it is very

Differences between text and varchar and char in mysql

The length of a char column is fixed to the length declared during table creation. The length can be any value from 0 to 255. When saving CHAR values, fill in spaces on the right of them to reach the specified length. When the CHAR value is

How to obtain the database size in mysql

1. check the mysql database size SELECTsum (DATA_LENGTH) + sum (INDEX_LENGTH) FROMinformation_schema.TABLESwhereTABLE_SCHEMA database name. The result is in bytes, except 1024 for K, except 1048576 (1024*1024) for M. 2. view the last mysql

How to capture and record deadlocks in SQLServer

Method 1: Use the SQL Server Agent (Alert + Job) to perform the following steps: 1. First, use the following command to enable the tracking flag. SQLcodeDBCCTRACEON (1222, 3605,-1) Description: outputs the result of DBCC to the error log. 1204

Solve the Problem of MySQL database Chinese fuzzy search

In MySQL, some irrelevant records are often returned during fuzzy search of Chinese characters. For example, when % a % is found, the returned records may contain Chinese characters, but no a character exists. I have encountered similar problems

Large Memory SQL Server database accelerator

Configuring a large memory for the database can effectively improve the database performance. Because the database is running, a region is allocated in the memory as the data cache. Generally, when a user accesses a database, the data is first read

Summary of six useful SQL statements for MySQL database operations

In MySQL database operations, we often write some SQL statements to implement the functions we want. However, it seems difficult for beginners of MySQL databases. This article summarizes six useful SQL statements. Beginners can use the following

How to input data into a MySQL database table

When you have created a database and a table, you first think of entering data into the database table. this involves how to add data to the database. next we will discuss this question: 1. in general, the commonly used method is the insert

Use the Update log file in MySQL

You cannot back up data at any time, but when your data is lost or the files in the database directory are damaged, you can only restore the files that have been backed up, and insert or update the data after this, you can't do anything about it. To

CentOS6.3 install MySQL5.6.10 and modify the MySQL root User Password

Environment: CentOS6.3 minimizes the default installation and configures the NIC. Before installing MySQL, check that the Internet connection is normal to download the installation file. Use the yum-yupdate command to upgrade the system to the

One way to achieve automatic remote backup in mysql

How does mysql implement automatic remote backup? 1. Implementing Local Automatic database backup is simple: 1. log in as root. scheduled task (usrbinmysqlbackup is automatically executed at every day) crontab03: 30 *** usrbinmysqlbackup3. write an

Total Pages: 12780 1 .... 3569 3570 3571 3572 3573 .... 12780 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.