摘要:
windows: 1、建一个Bat文件如下。 2、设置定时执行Bat方法:https://www.cnblogs.com/bmwchampion/archive/2010/08/21/autotimingexcutejob.html @echo off set basedir=%~dp0 set l 阅读全文
摘要:
C# 会自动替换 变量 把形如 "{{varName}}" 替换成对应的数值 using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Text; using Sy 阅读全文
摘要:
问题一: 1129 - Host '192.168.1.10' is blocked because of many connection errors; unblock with 'mysqladmin flush-hosts' 解决方法:mysqladmin -uroot -P7506 -pte 阅读全文
摘要:
端口替换.bat @echo off Setlocal enabledelayedexpansion SET FIND_DIR=%~dp0 set st=7506 ::把替换字符串赋值给dt,这里举例是st->dt set dt=4506 ::循环bat文件只取文件名将文件名设置到s变量上 for 阅读全文
摘要:
备份数据库.bat @setlocal enabledelayedexpansion @echo off color f0 title 备份数据库 rem 下面为自定义参数可修改 set mysqlServiceName=MySQL4506 set mysqlPort=4506 set rootUs 阅读全文
摘要:
生成Mysql连接SSL证书.bat: @setlocal enabledelayedexpansion @echo off color f0 @REM 生成证书(前提是安装了oponssl) title 生成Mysql连接SSL证书 rem 下面为自定义参数可修改 set basedir=%~dp 阅读全文