1.时间格式:’%Y-%m-%d %H:%i:%s’
2.时间戳转字符串:FROM_UNIXTIME(time/1000,’%Y-%m-%d’)
3.最大并发数
查询:show variables like ‘%max_connections%’;
修改:1.set GLOBAL max_connections=512;(重启后失效)
2.修改mysql配置文件my.cnf,在[mysqld]段中添加或修改max_connections值:
max_connections=512(重启mysql)
show global status like ‘Max_used_connections’;
max_used_connections / max_connections * 100% (理想值≈ 85%)