
shell
nieyanshun_me
这个作者很懒,什么都没留下…
展开
-
shell中单引号和双引号的问题
写一个shell去处理mysql的数据,遇到一个拼接条件的问题。就是在-e中的sql语句中加where条件,模拟下。lala=hehe echo "'$lala'" 输出:'hehe' 这样就可以把参数拼接到where条件中echo "select a from table where a='$lala' " 输出:select a from table where a='hehe' 这里注意下这种原创 2016-11-03 11:07:50 · 653 阅读 · 0 评论 -
Mysqldump 之Access denied when doing LOCK TABLES
在写一个脚本,备份表数据,当表有数据在插入的时候,提示 Access denied for user '**'@'**' to database '**' when doing LOCK TABLES搜了一下原因: Lock all tables before dumping them. The tables are locked with READ LOCAL to allow concu原创 2016-11-16 13:49:11 · 597 阅读 · 0 评论