!/bin/bash path=/var/log log=${path}/httpd mysql.log name=(httpd mysql) exs_init[0]="systemctl restart httpd" exs_init[1]="systemctl restart mysqld" f ...
分类:
系统相关 时间:
2020-01-16 18:35:27
阅读次数:
184
使用记录: SHOW VARIABLES LIKE "general_log%"; SET GLOBAL general_log = 'ON'; SET GLOBAL general_log_file = 'd:\mysql.log'; General_log 详解 1.介绍 开启 general ...
分类:
数据库 时间:
2020-01-15 23:27:21
阅读次数:
189
Django基础了解知识 HTTP协议(超文本传输协议) "HTTP协议" 1. 四大特性 : 1. 基于TCP/IP之上作用于应用层 2. 基于请求响应 3. 无状态 引申出cookie session token…… 4. 无连接 长连接 "websocket" (HTTP协议的大补丁) 2. ...
分类:
Web程序 时间:
2019-10-19 13:30:27
阅读次数:
215
1. 打开mysql配置文件 sudo vi /etc/mysql/mysql.conf.d/mysql.cnf 关闭这两行的注释 2、重新启动mysql服务 sudo service mysql restart 3、查看mysql日志文件 less /var/log/mysql/mysql.log ...
分类:
数据库 时间:
2019-10-07 09:23:52
阅读次数:
355
转自链接:https://blog.csdn.net/iFuMI/article/details/77920767执行效果: 1. count(1) and count(*) 当表的数据量大些时,对表作分析之后,使用count(1)还要比使用count(*)用时多了! 从执行计划来看,count(1 ...
分类:
其他好文 时间:
2019-09-24 15:51:07
阅读次数:
63
在一个典型的LAMP(Linux+Apache+Mysql+Perl)应用环境里: Apache & Nginx; 查找访问和错误日志, 直接找 5xx 错误, 再看看是否有 limit_zone 错误。 MySQL; 在mysql.log找错误消息,看看有没有结构损坏的表, 是否有innodb修复 ...
分类:
系统相关 时间:
2019-06-30 18:57:00
阅读次数:
148
题外话:中华文化博大进深,从学Java到数据库,无一不体现出同一组件鱼和熊掌不可兼得的要义。自然,编程中安全和效率也很难同时做到完美,这一次InnoDB和MyISAM又让我大开眼界。 好了,Talk is cheap,show you the code: 测试环境:Mysql 5.7.20-log, ...
分类:
数据库 时间:
2019-06-25 00:05:12
阅读次数:
162
修改my.ini配置 修改my.ini配置 server-id=1? server-id=1? log-bin=mysql-log-bin? log-bin=mysql-log-bin? binlog-do-db=数据库名 binlog-do-db=数据库名 重启数据库服务 重启数据库服务 GRAN ...
分类:
数据库 时间:
2019-06-13 17:10:40
阅读次数:
141
1 /* 2 SQLyog Ultimate v10.00 Beta1 3 MySQL - 5.7.18-log : Database - girls 4 ********************************************************************* 5 ...
分类:
其他好文 时间:
2019-05-01 18:50:52
阅读次数:
381
1系统约定安装文件下载目录:/opt/softwareMysql目录安装位置:/usr/local/mysql数据库保存位置:/opt/data/mysql/data日志保存位置:/opt/data/mysql/log 2.下载mysql,解压,并拷贝到安装目录http://dev.mysql.co ...
分类:
数据库 时间:
2019-03-26 01:27:38
阅读次数:
234