![](https://img-blog.csdnimg.cn/20201014180756916.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
MySQL
野猪佩挤
sad
展开
-
K8S单机部署mysql
tee mysqldb.yaml <<-'EOF' apiVersion: apps/v1 kind: StatefulSet metadata: name: mysql-sz namespace: ops labels: app: mysqlsz spec: selector: matchLabels: app: mysqlsz serviceName: mysqlsz replicas: 1 template: metadata原创 2022-04-16 21:44:42 · 840 阅读 · 0 评论 -
远程分库导出阿里云MySQL
#!/bin/bash u="root" p="bBQycPgI4YV2" link="rm-3n21.mysql.rds.aliyuncs.com" database=`mysql -P3300 -u${u} -p${p} -h${link} -e "show databases"|grep -Ev "Database|information_schema|mysql|sys|performance_schema"` for data in ${database} do echo $data m原创 2022-04-16 21:01:32 · 632 阅读 · 0 评论 -
Mysql uf8
如果仍有编码不是utf8的,请检查配置文件,也可使用mysql命令设置: set character_set_client = utf8; set character_set_server = utf8; set character_set_connection = utf8; set character_set_database = utf8; set character_set_results = utf8; set collation_connection = utf8_general_ci原创 2020-07-29 15:54:43 · 220 阅读 · 0 评论