MySQL Scheduled Tasks

Source: Internet
Author: User

Database Links:


Mysql-uroot-p <!--database connection--
Mysql-h10.0.0.100-ustaging-pn3ktxg
Show Databases <!--See all db-->
INSERT into ' user ' (
Select id+3333504, ' user_name ', ' password ',
' Birthday ', ' mobile ', ' email ', ' province ', ' City ', ' region ', ' create_at ', ' update_at ',
' Login_at ', ' last_login_at ', ' account_status ', ' account_open_at ', ' risk_at ', ' risk_end ', ' risk ',
' Nick ', ' sms_status ', ' source ', ' fund_account ', ' branch_no ', ' id_no ', ' client_name ',
' friend_id ', ' client_id ', ' user_type ', ' sale_licence ', ' operate_code ', ' user_status ', ' user_trace ', ' remote_addr ', ' Channel '
From ' user ') <!----Insert test data--

To schedule a task:


Mysql> Show variables like "%pro%";<!---Check if profile is open (not open)--
Mysql> set profiling=1; <!--set Profile open-
mysql> use test--switch using DB
Select Id_no,user_name,mobile from ' User ' where SUBSTR (id_no,11,4) = ' 0512 '; --Execute SQL
Mysql> Show Profiles; --View SQL Records
Mysql> Show profile for query 2; ---View details Scheduled Tasks
Mysql> Show profile block io,cpu for Query 3; ---CPU, io usage
Mysql> Show profile memory for query 3; --Memory usage

Time stamp:


Mysql>select from_unixtime (1249488000, '%y%m%d ')
mysql> SELECT unix_timestamp (' 2009-08-06 ');
SELECT date_format (date_id, '%y-%m-%d ') from Batch_select_check_point a where date_id< str_to_date (' 2016-08-10 ', '% y-%m-%d ')

*********************

Often use Oracle, with MySQL, to record

MySQL Scheduled Tasks

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.