1.更改root密码 mysqladmin -uroot password 'yourpassword' 2.远程登陆mysql服务器 mysql -uroot -p -h192.168.137.10 -P3306 3.查询数据库 show databases; 4.进入某个数据库 use data ...
分类:
数据库 时间:
2018-08-27 15:26:33
阅读次数:
214
常用的: --查看查询时间超过long_query_time秒的查询的个数。 show status like 'slow_queries'; --查看创建时间超过slow_launch_time秒的线程数。 show status like 'slow_launch_threads'; --查看不 ...
分类:
其他好文 时间:
2018-08-26 14:11:22
阅读次数:
287
和 148. Sort List 一样的思路,需要把链表一分为二,利用快慢指针即可。 需要注意的是,写完一定要 两个节点 三个节点 代入几个 test case 检查一下,非常容易出错。下面做法是把最后slow的位置作为 root,递归左半边和右半边。 时间复杂度 O(nlogn) 空间复杂度 O( ...
分类:
其他好文 时间:
2018-08-26 00:03:13
阅读次数:
128
New York is 3 hours ahead of California,but it does not make California slow.Someone graduated at the age of 22,but waited 5 years before securing a g ...
分类:
其他好文 时间:
2018-08-25 22:56:32
阅读次数:
185
运行环境:centos6.6+mysql8.0.121.下载官方打包好的二进制安装包:#wgethttps://cdn.mysql.com//Downloads/MySQL-8.0/mysql-8.0.12-linux-glibc2.12-x86_64.tar.xz可以看到这个版本采用了tar.xz的打包压缩方式,文件只有350M左右,下载还是满方便的。du-shmysql-8.0.12-linu
分类:
数据库 时间:
2018-08-25 21:51:12
阅读次数:
402
1. 基本效果 参数详解 2. 滑动效果 <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>滚动播放</title> <style> body { background:#ccc; } #box { margi ...
分类:
Web程序 时间:
2018-08-25 20:01:05
阅读次数:
220
开启慢查询日志 在配置文件my.cnf或my.ini中在 [mysqld] 一行下面加入两个配置参数 sql 查看慢查询配置 慢查询记录到日志 在默认情况下,低版本的mysql不会记录慢查询,需要在启动mysql时候,指定记录慢查询才可以 bin\mysqld.exe –log-slow-queri ...
分类:
数据库 时间:
2018-08-25 14:38:22
阅读次数:
178
str 2、判断字符串是否全部为数字,isalnum 3.判断字符串中是否全部为英文字母或者汉字 isalpha 4.判断字符串中内容是否为数字 5.是否存在不可显示的字符,例如:\n \t 6.判断字符串中是否全部为空格,是为true 否则为false 7.判断字符串是否为标题,并转换成标题。 8 ...
分类:
其他好文 时间:
2018-08-23 22:14:30
阅读次数:
223
今天在知乎看到一个回答,很有感触,遂记录拷贝在此: 不要在年龄方面焦虑,复制一段话给你看 纽约时间比加州时间早三个小时, New York is 3 hours ahead of California, 但加州时间并没有变慢。 but it does not make California slow ...
分类:
其他好文 时间:
2018-08-22 00:17:58
阅读次数:
181
本文转自:https://weblog.west-wind.com/posts/2013/Dec/22/Entity-Framework-and-slow-bulk-INSERTs I’ve been working on an internal project where I needed to ...
分类:
其他好文 时间:
2018-08-20 18:59:49
阅读次数:
193