{"id":150811,"date":"2019-07-14T10:17:41","date_gmt":"2019-07-14T02:17:41","guid":{"rendered":"https:\/\/lrxjmw.cn\/?p=150811"},"modified":"2019-07-08T09:18:53","modified_gmt":"2019-07-08T01:18:53","slug":"shell-insertion-data","status":"publish","type":"post","link":"https:\/\/lrxjmw.cn\/shell-insertion-data.html","title":{"rendered":"\u901a\u8fc7shell\u811a\u672c\u6279\u91cf\u64cd\u4f5cmysql\u6570\u636e\u5e93"},"content":{"rendered":"
\u521b\u5efa\u5efa\u8868\u8bed\u53e5<\/strong><\/span><\/div>\n
\r\n\u3000\u3000=============================================\r\n\r\n\u3000\u3000\u5b66\u751f\u8868\uff1aStudent(Sno,Sname,Ssex,Sage,Sdept)\r\n\r\n\u3000\u3000------(\u5b66\u53f7-\u4e3b\u952e\uff0c\u59d3\u540d\uff0c\u6027\u522b\uff0c\u5e74\u9f84\uff0c\u6240\u5728\u7cfb)\r\n\r\n\u3000\u3000=============================================\r\n\r\n\u3000\u3000create table student(\r\n\r\n\u3000\u3000Sno int(10) NOT NULL COMMENT '\u5b66\u53f7',\r\n\r\n\u3000\u3000Sname varchar(16) NOT NULL COMMENT '\u59d3\u540d',\r\n\r\n\u3000\u3000Ssex char(2) NOT NULL COMMENT '\u6027\u522b',\r\n\r\n\u3000\u3000Sage tinyint(2) NOT NULL default '0' COMMENT '\u5b66\u751f\u5e74\u9f84',\r\n\r\n\u3000\u3000Sdept varchar(16) default NULL COMMENT '\u5b66\u751f\u6240\u5728\u7cfb\u522b',\r\n\r\n\u3000\u3000PRIMARY KEY (Sno)\r\n\r\n\u3000\u3000) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8;\r\n<\/pre>\n
\u6279\u91cf\u63d2\u5165\u6570\u636e\u811a\u672c<\/strong><\/span><\/div>\n
\r\n\u3000\u3000#!\/bin\/bash\r\n\r\n\u3000\u3000#create by oldboy 20110319\r\n\r\n\u3000\u3000#qq:31333741\r\n\r\n\u3000\u3000MysqlLogin=\"mysql -uroot -poldboy\" #\u2192\u5b9a\u4e49\u767b\u9646mysql\u7684\u547d\u4ee4\uff0c\u65b9\u4fbf\u4e0b\u6587\u4f7f\u7528\r\n\r\n\u3000\u3000#MysqlLogin=\"mysql -uroot -poldboy -S \/data\/3306\/mysql.sock\" #\u6b64\u884c\u9002\u5408\u5355\u673a\u591a\u5b9e\u4f8b\u6570\u636e\u5e93\u7684\u65b9\u5f0f\r\n\r\n\u3000\u3000i=1\r\n\r\n\u3000\u3000while true #\u2192true\u8868\u793a\u6c38\u8fdc\u4e3a\u771f\r\n\r\n\u3000\u3000do\r\n\r\n\u3000\u3000${MysqlLogin} -e \"insert into test.student values (\"$i\",'oldboy\"$i\"','m','21','computer\"$i\"');\"\r\n\r\n\u3000\u3000#${MysqlLogin} -e \"insert into oldboy.student values (\"$i\",'oldboy\"$i\"','m','21','computer\"$i\"');\"\r\n\r\n\u3000\u3000#\u5982\u679c\u662f\u591a\u5f20\u8868\u53ef\u4ee5\u540c\u65f6\u63d2\u5165\u591a\u5f20\u8868,\u6211\u8fd9\u91cc\u7ed9\u51fa\u7684\u4f8b\u5b50\uff0c\u662f\u63d2\u5165\u4e0d\u540c\u7684\u8bb0\u5f55\uff0c\u53ef\u4ee5\u7528\u4e8e\u505a\u5404\u79cd\u5c0f\u6d4b\u8bd5\uff0c\u6bd4\u8f83\u9002\u5408\u5404\u7c7b\u521d\u7ea7\u4e0d\u4f1amysql\u5b58\u50a8\u8fc7\u7a0b\u7684\u8fd0\u7ef4\u4eba\u5458\u3002\r\n\r\n\u3000\u3000((i++))\r\n\r\n\u3000\u3000sleep 2;\r\n\r\n\u3000\u3000done\r\n<\/pre>\n","protected":false},"excerpt":{"rendered":"

\u3000\u3000============================================= \u3000\u3000\u5b66\u751f\u8868\uff1aS […]<\/p>\n","protected":false},"author":1479,"featured_media":4956,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[55],"tags":[],"class_list":["post-150811","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-thread"],"acf":[],"_links":{"self":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts\/150811","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/users\/1479"}],"replies":[{"embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/comments?post=150811"}],"version-history":[{"count":3,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts\/150811\/revisions"}],"predecessor-version":[{"id":150937,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts\/150811\/revisions\/150937"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/media\/4956"}],"wp:attachment":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/media?parent=150811"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/categories?post=150811"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/tags?post=150811"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}