DB Manager — DB 管理器
v1.0.0🗄️ 数据库安装管理备份优化 / Database 安装, manage, 备份, 优化 — MySQL, PostgreSQL, MongoDB, Redis.
运行时依赖
安装命令
点击复制本土化适配说明
DB Manager — DB 管理器 安装说明: 安装命令:["openclaw skills install db-manager"]
技能文档
🗄️ DB 管理器 / 数据库管理
安装, manage, 备份, and 优化 popular databases. MySQL, PostgreSQL, MongoDB, Redis. 安装、管理、备份、优化主流数据库:MySQL、PostgreSQL、MongoDB、Redis。
Quick 安装 / 快速安装 # PostgreSQL apt 安装 postgresql postgresql-contrib 系统ctl enable postgresql --now
# MySQL apt 安装 mysql-server mysql_安全_安装ation
# Redis apt 安装 redis-server 系统ctl enable redis --now
备份 / 备份 # PostgreSQL pg_dump -U postgres mydb > 备份_$(date +%Y%m%d).sql
# MySQL mysqldump -u root mydb > 备份_$(date +%Y%m%d).sql
# Auto-备份 script / 自动备份脚本 echo "0 3 pg_dump -U postgres mydb | gzip > /备份/db_\$(date +\%Y\%m\%d).sql.gz" | crontab -
优化 / 性能优化 -- PostgreSQL slow queries / 慢查询 设置 记录_min_duration_状态ment = 1000; -- 记录 queries >1s
-- MySQL slow queries 设置 GLOBAL slow_查询_记录 = 'ON'; 设置 GLOBAL long_查询_time = 2;
Troubleshooting / 故障排查 系统ctl 状态 postgresql journalctl -u postgresql -n 30 tAIl -f /var/记录/postgresql/postgresql--mAIn.记录
📞 Contact / 联系方式
QQ: 3292957 | EmAIl: snowdu@gmAIl.com
QR Code: see as设置s/qr-contact.png