fattain-naime/cwp-superpowers/cwp-database
- community
Checking that the SKILL.md file is still in the repository.
This skill should be used when the user asks to "create MySQL database", "manage MariaDB", "install PostgreSQL", "configure MongoDB", "reset MySQL password", "tune database performance", "upgrade MariaDB", "fix database crash", "set up remote MySQL", "import database", "repair tables", "optimize database", or needs to manage any database service on a CWP server.
Install
npx vskill@latest install fattain-naime/cwp-superpowers/cwp-databaseSKILL.md
CWP Database Management
Manage MySQL/MariaDB, PostgreSQL, and MongoDB databases on CWP servers. Handle database creation, user management, performance tuning, upgrades, and recovery.
Database Services Overview
| Database | Default | Management Tool | |
|---|---|---|---|
| MariaDB | Installed by default | phpMyAdmin included | |
| MySQL | Alternative to MariaDB | phpMyAdmin included | |
| PostgreSQL | Optional install | phpPgAdmin | |
| MongoDB | Optional install | MongoDB Manager |
Service Detection
Detect which database services are installed:
MariaDB/MySQL
Configuration Files
| File | Purpose | |
|---|---|---|
/etc/my.cnf.d/server.cnf | MariaDB main configuration | |
/root/.my.cnf | MySQL root credentials | |
/etc/yum.repos.d/mariadb.repo | MariaDB repository | |
/usr/local/cwpsrv/htdocs/resources/admin/include/db_conn.php | CWP database connection |
Access phpMyAdmin
- URL:
https://SERVER_IP:2030/phpMyAdmin/ - Credentials: Use root password from
/root/.my.cnf
Common Database Operations
Database Management via API
Performance Tuning
Edit /etc/my.cnf.d/server.cnf under [mysqld]:
After changes, restart MariaDB:
Repair and Optimize Tables
MariaDB Upgrade
Upgrade between MariaDB versions following the official path:
Warning: Always back up all databases before upgrading. Test on a staging server first.
MariaDB Upgrade Paths
| From | To | Notes | |
|---|---|---|---|
| 10.2 | 10.3 -> 10.4 -> 10.5 -> 10.6 | Step-by-step recommended | |
| 10.3 | 10.4 -> 10.5 -> 10.6 | Step-by-step recommended | |
| 10.4 | 10.5 -> 10.6 | Direct may work | |
| 10.5 | 10.6 | Direct upgrade |
Remote MySQL Access
InnoDB Crash Recovery
When MariaDB fails to start due to InnoDB corruption:
PostgreSQL
Installation
Configuration Files
| File | Purpose | |
|---|---|---|
/var/lib/pgsql/data/postgresql.conf | Main PostgreSQL configuration | |
/var/lib/pgsql/data/pg_hba.conf | Client authentication config | |
/var/lib/pgsql/data/pg_ident.conf | Username mapping |
Common Operations
Enable PHP PostgreSQL Support
Recompile PHP with --with-pgsql and --with-pdo-pgsql flags via PHP Switcher.
Performance Tuning
Edit /var/lib/pgsql/data/postgresql.conf:
MongoDB
Installation
Configuration Files
| File | Purpose | |
|---|---|---|
/etc/mongod.conf | Main MongoDB configuration | |
/var/log/mongodb/mongod.log | MongoDB log file | |
/var/lib/mongo/ | Data directory |
Common Operations
Configuration
Edit /etc/mongod.conf:
Troubleshooting
| Issue | Solution | |
|---|---|---|
| MySQL crashed (InnoDB) | innodb_force_recovery = 1 (increment 1-6) | |
| "BAD CONFIGURATION" error | Tune my.cnf with proper buffer settings | |
| MariaDB upgrade failed | Follow version-specific upgrade path | |
| Too many connections | Set max_connections = 500 in my.cnf | |
| Can't connect to phpMyAdmin | Check /root/.my.cnf credentials | |
| Database import timeout | Increase max_allowed_packet and wait_timeout | |
| Slow queries | Enable slow query log, add indexes |
Diagnostic Commands
Additional Resources
references/mysql.md-- MariaDB/MySQL configuration and tuning guidereferences/postgresql.md-- PostgreSQL installation and configurationreferences/mongodb.md-- MongoDB setup and management
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewNot runA model review is scheduled for the next rescan.
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/cwp-database/SKILL.md
Popularity
- 7-day trend score
- 0
Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/fattain-naime/cwp-superpowers/cwp-database)