Shell脚本远程连接DB2,执行语句
点击(此处)折叠或打开#!/bin/bashfilepath=$(cd \"$(dirname \"$0\")\"; pwd)name=$HOSTNAMEmysqluser=mysqlserver_ip=192.168.207.212mysqlip=10.27.81.100echo \"insert into MO...
Grep 查找一个变量的值
点击(此处)折叠或打开mysqluser=`cat $filepath/mysql_monitor.txt|grep instance_name|awk -F\'=\' \'{print $2}\'`mysql_dir=`cat /etc/passwd |grep $mysqluser |awk -F\':\' \'{print $6}\'`从文本中获取一个用户名,查找用户的根目录,结果发现找...
MySQL中的 DELIMITER $$
开发给了1个存储过程的脚本,说是从其他库上导出来的,现在创建报错:check the manual that corresponds to your MySQL server version for the right syntax to use near \'\' at line 3在本地测试,source 2.sql ,发现全是这些莫名其妙的错误。发现是脚本中有多行,以分号结尾。MySQL默认的行分隔符...
MySQL 启动报错 Table 'mysql.plugin' doesn't exist
启动报错 Table 'mysql.plugin' doesn't exist