【常用随笔2018】

【HTML】

<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<meta charset="UTF-8"> 
<script type="text/javascript" src="jquery-1.3.1.js"></script>
<meta http-equiv ="refresh" content ="60"> #定时刷新页面  
body{-webkit-user-select:none;} #CSS控制页面文字不能复制

【PHP】

date_default_timezone_set(PRC); //时区设置
header("Content-type: text/html; charset=utf-8");
error_reporting(E_ALL & ~E_DEPRECATED & ~E_NOTICE  & ~E_WARNING);
ini_set ('memory_limit', '1280M');

【MySQL】

mysql -h192.168.0.201 -P3306 -uroot -p123 -D数据库名 #命令行连接数据库
SET PASSWORD = PASSWORD('123456'); #修改root密码
mysqldump -uroot -p123456 test [score] [--where="score>=60"] > db.sql #导出表数据并包含where条件
mysql -h192.168.x.x -uroot -p123456 -e "set names 'utf8';select field from dbname where type=2" > db.sql #自定义SQL数据导出

猜你喜欢

转载自www.cnblogs.com/kccdzz/p/9075667.html