上一页 1 2 3 4 5 6 7 8 ··· 23 下一页
摘要: yum -y install pcre-devel zlib-devel openssl openssl-develwget https://nginx.org/download/nginx-1.24.0.tar.gzwget https://codeload.github.com/yaoweibi 阅读全文
posted @ 2024-08-15 22:07 刚好遇见Mysql 阅读(21) 评论(0) 推荐(0)
摘要: 中继日志(relaylog)只在主从服务器架构的从服务器上存在。从服务器(slave)为了与主服务器(Master)保持一致,要从主服务器读取二进制日志的内容,并且把读取到的信息写入本地的日志文件中,这个从服务器本地的日志文件就叫中继日志。从服务器读取中继日志,并根据中继日志的内容对从服务器的数据进 阅读全文
posted @ 2024-08-05 10:29 刚好遇见Mysql 阅读(155) 评论(0) 推荐(0)
摘要: mysql日志时间默认格式查询 mysql> SHOW GLOBAL VARIABLES LIKE 'log_timestamps';+ + +| Variable_name | Value |+ + +| log_timestamps | UTC |+ + +1 row in set (0.08 阅读全文
posted @ 2024-08-03 09:37 刚好遇见Mysql 阅读(67) 评论(0) 推荐(0)
摘要: 备份 /usr/bin/xtrabackup --defaults-file=/etc/my.cnf --no-server-version-check --user=bk --password=ocm123 --backup --target-dir=/data/bk/bk_`date +%Y%m 阅读全文
posted @ 2024-08-02 11:54 刚好遇见Mysql 阅读(138) 评论(0) 推荐(0)
摘要: 查看密码策略 mysql> SHOW VARIABLES LIKE 'validate_password%'; + + + | Variable_name | Value | + + + | validate_password_check_user_name | ON | | validate_pa 阅读全文
posted @ 2024-08-02 08:49 刚好遇见Mysql 阅读(24) 评论(0) 推荐(0)
摘要: mysql> optimize table iuap_apdoc_coredoc.productapplyrange;+ + + + +| Table | Op | Msg_type | Msg_text |+ + + + +| iuap_apdoc_coredoc.productapplyrang 阅读全文
posted @ 2024-07-30 14:57 刚好遇见Mysql 阅读(40) 评论(0) 推荐(0)
摘要: --正在执行语句 select a.thd_id,a.db,a.time,a.current_statement,a.full_scan,a.current_memory,a.statement_latency from sys.session a WHERE conn_id!=connection 阅读全文
posted @ 2024-07-29 14:30 刚好遇见Mysql 阅读(36) 评论(0) 推荐(0)
摘要: ##计算shmall和shmmax值memTotal=$(grep MemTotal /proc/meminfo | awk '{print $2}')totalMemory=$((memTotal / 2048))shmall=$((memTotal / 4))if [ $shmall -lt 2 阅读全文
posted @ 2024-07-26 09:49 刚好遇见Mysql 阅读(22) 评论(0) 推荐(0)
摘要: 升级前备份见 https://www.cnblogs.com/omsql/p/9241366.html ln -s mysql-8.0.33-linux-glibc2.12-x86_64 mysql MySQL8.0.16开始,MySQL 不推荐使用mysql_upgrade;直接使用 mysqld 阅读全文
posted @ 2024-07-26 06:52 刚好遇见Mysql 阅读(99) 评论(0) 推荐(0)
摘要: --建表 select * into tablenew from tableold 阅读全文
posted @ 2024-07-22 09:44 刚好遇见Mysql 阅读(13) 评论(0) 推荐(0)
上一页 1 2 3 4 5 6 7 8 ··· 23 下一页