check please play script

Alibabacloud.com offers a wide variety of articles about check please play script, easily find your check please play script information here online.

A practical SQL Server daily check script

SQL Server Daily Check script print '----------------------------' print ' 0.sqlserver All information 'print '----------------------------'print 'print ' ********************************* ' --step 1:setting NULLs and quoted identifiers to on and checking the version of SQL ServerGoSET ANSI_NULLS onGoSET QUOTED_IDENTIFIER ONGo IF EXISTS (SELECT * from dbo.sysobjects WHERE id = object_id (n ' prodver ')

MySQL a script to check the running status

~/com_insert/) {com_insert=$3;} elseif ($2~/com_update/) {com_update=$3;} elseif ($2~/com_delete/) {com_delete=$3;} elseif ($2~/innodb_rows_read/) {innodb_rows_read=$3;} elseif ($2~/innodb_rows_deleted/) {innodb_rows_deleted=$3;} elseif ($2~/innodb_rows_inserted/) {innodb_rows_inserted=$3;} elseif ($2~/innodb_rows_updated/) {innodb_rows_updated=$3;} elseif ($2~/threads_connected/) {threads_connected=$3;} elseif ($2~/threads_running/) {threads_running=$3;} elseif ($2~/innodb_buffer_pool_read_requ

MySQL Service health Check script

#!/bin/sh#date: 2015-12-07#filename: check_mysql.sh#linuxzkq#Email: [Email protected]#version: v1.0#port = ' Netstat-tunlp|grep 3306|wc-l '#process = ' Ps-ef|grep mysqld|grep-v grep|wc-l 'Value= '/application/mysql/bin/mysql-u root-poldboy-e ' select version (); ">/dev/null 2>1"While TrueDoIf [$? -ne 0]Then#echo "error! MySQL is not running "/etc/init.d/mysqld startElseecho "MySQL is running,now!"FiSleep 5Value= '/application/mysql/bin/mysql-u root-poldboy-e ' select version (); ">/dev/null 2>1"

Shell script operation MySQL database, using the MySQL-e parameter can perform various types of SQL (create, delete, add, delete, change, check) and other operations

"${update_sql}"Mysql-h${hostname}-p${port}-u${username}-p${password} ${dbname}-E "${select_sql}"#删除数据Delete_sql= "Delete from ${tablename}"Mysql-h${hostname}-p${port}-u${username}-p${password} ${dbname}-E "${delete_sql}"Mysql-h${hostname}-p${port}-u${username}-p${password} ${dbname}-E "${select_sql}"Show Processlist How to filter the problem I finally know how to fix it.MYSQL-UROOT-E-p password ' show processlist\g ';Mysql-uroot-e ' show processlist\g ' |grep ' Info ' |grep-v "NULL" |awk-f ":"

MongoDB script Execution Add, delete, change, check

* } $ })Panax Notoginseng }) -Db. Vac_order.Save(Order) the }) + A the Non-collection modifications +Db. TableName.Update({"Field": "Condition"},{$Set: {"field": "New Value"}},{multi:true}) - $ Collection Modification $Db. Vac_order.find ({}). ForEach (function(Order){ - Order. Orderdetail.foreach (function(detail) { -Detail. Mappingdetail.foreach (function(mapping) { the if(Mapping.newfield) { -Mapping.newfield=1//re-assign valueWuyi }

Shell script operation MySQL database, using the MySQL-e parameter can perform various types of SQL (create, delete, add, delete, change, check) and other operations

Label:MYSQL-HHOSTNAME-PPORT-UUSERNAME-PPASSWORD-E mysql-related SQL statements without running MySQL at the prompt of MySQL, which means you can manipulate MySQL in the shell. #!/bin/Bash HOSTNAME="192.168.111.84"#数据库信息 PORT="3306"USERNAME="Root"PASSWORD=""DBNAME="test_db_test"#数据库名称 TABLENAME="test_table_test"#数据库中表的名称 Create a database Create_db_sql="CREATE database IF not EXISTS ${dbname}" -h${hostname} - P${port} -u${username}-p${password}-e"${create_db_sql}" Create a table Create_tabl

Total Pages: 6 1 2 3 4 5 6 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.