摘要: https://aistudio.google.com/ 获取api key 配置环境变量 GEMINI_API_KEY 打开power shell,输入 $env:HTTP_PROXY = "http://127.0.0.1:1081" $env:HTTPS_PROXY = "http://127 阅读全文
posted @ 2025-09-13 12:31 abowu 阅读(16) 评论(0) 推荐(0)
摘要: 1、添加 Percona 的官方 APT 仓库 wget https://repo.percona.com/apt/percona-release_latest.generic_all.deb sudo dpkg -i percona-release_latest.generic_all.deb 2 阅读全文
posted @ 2025-06-25 19:22 abowu 阅读(71) 评论(0) 推荐(0)
摘要: 假设要从A库迁移到B 在A库导出数据 在A建立主从同步用户 CREATE USER 'repl'@'%' IDENTIFIED WITH 'mysql_native_password' BY 'xxxxxx'; GRANT REPLICATION SLAVE ON *.* TO 'repl'@'%' 阅读全文
posted @ 2025-06-19 09:40 abowu 阅读(18) 评论(0) 推荐(0)
摘要: ALTER USER 'root'@'%' IDENTIFIED BY 'RUzmyyQKaP'; ALTER USER 'root'@'localhost' IDENTIFIED BY 'RUzmyyQKaP'; flush privileges; 阅读全文
posted @ 2025-06-18 17:33 abowu 阅读(7) 评论(0) 推荐(0)
摘要: SELECT table_schema AS ' 数据库 ', table_name AS ' 表名 ', a.TABLE_TYPE, a.`ENGINE`, a.CREATE_TIME, a.UPDATE_TIME, a.TABLE_COLLATION, table_rows AS ' 记录数 ' 阅读全文
posted @ 2025-05-11 09:04 abowu 阅读(53) 评论(0) 推荐(0)
摘要: 1、前言 ElasticSearch是一个基于Lucene的搜索服务器。它提供了一个分布式多用户能力的全文搜索引擎,基于RESTful web接口。Elasticsearch是用Java开发的,并作为Apache许可条款下的开放源码发布,是当前流行的企业级搜索引擎。Elasticsearch的增删改 阅读全文
posted @ 2025-05-05 15:01 abowu 阅读(130) 评论(0) 推荐(0)
摘要: 进入 MongoDB 容器 docker exec -it <mongodb_container_name> bash mongostat --host=<container_ip>:27017 --username= --password= --authenticationDatabase=adm 阅读全文
posted @ 2025-04-02 08:31 abowu 阅读(4) 评论(0) 推荐(0)
摘要: 方法详解 这里会列出常用方法的详解,更多方法可查阅jackson api文档 ObjectMapper类是Jackson库的主要类。它提供一些功能将转换成Java对象匹配JSON结构 对象转json字符串 ObjectMapper 通过 writeValue 系列方法将 java 对象序列化为 js 阅读全文
posted @ 2024-11-19 15:40 abowu 阅读(197) 评论(0) 推荐(0)
摘要: mkdir -p ~/.ssh 1、在 A 服务器上,进入.ssh 目录; [root@iZam205rbu8s7yra2fop0nZ ~]# cd ~/.ssh/ 2、在 A 服务器上面的.ssh 目录下生成密钥; [root@iZam205rbu8s7yra2fop0nZ .ssh]# ssh- 阅读全文
posted @ 2024-08-22 13:13 abowu 阅读(293) 评论(0) 推荐(0)
摘要: List<Student> studentList = Lists.newArrayList(new Student("路飞", 22, 175), new Student("红发", 40, 180), new Student("白胡子", 50, 185), new Student("白胡子", 阅读全文
posted @ 2024-07-31 18:43 abowu 阅读(33) 评论(0) 推荐(0)