mariadb10 配置

配置运行远程连接 GRANT ALL PRIVILEGES ON *.* TO 'root'@'%' IDENTIFIED BY 'password' WITH GRANT OPTION; 配置使用账户密码登录 use mysql;update user set authentication_string=password('password'),plugin='mysql_native_password' where user='root';MariaDB [(none)]> set password for 'root'@'localhost'
2021-06-12 16:53:23 277 0 0

MYSQL数据处理sql

create table user1 select * from sgk where mod(id,32) = 1; create table user2 select * from sgk where mod(id,32) = 2; create table user3 select * from sgk where mod(id,32) = 3; create table user4 select * from sgk where mod(id,32) = 4; create table user5 select * from sgk where mod(id,32) =
2020-08-13 23:20:25 385 0 0

TCP配置表

attr | vm_centos | rpi3_centos | win10_1809_17763.437 - | :-: | :-: | :-: /proc/sys/net/core/rmem_max | 212992 | 163840 /proc/sys/net/core/rmem_default | 212992 | 163840 /proc/sys/net/core/wmem_max
2019-12-30 10:06:20 308 0 0

Redis总结

## Redis缓存穿透解决方案 --- 利用互斥锁,缓存失效的时候先去获取锁,获取到锁以后再进行数据库读取,没得到锁就继续休眠。 异步更新策略,直接返回成功或者失败,交给异步队列去处理获取数据灌进Redis 通过布隆过滤器判断key的合法性,不合法直接返回。
2019-05-30 11:41:06 660 0 0