kamdbctl(8)

πŸ’… kamdbctl β€” the Kamailio database control tool (yes, section 8, bestie)

okay so real quick: this page is kamdbctl(8) from the Kamailio fam, and I'm about to make database maintenance feel like a group chat. sit down, grab a boba, let's go πŸ§‹βœ¨

✨ NAME ✨

kamdbctl β€” the Kamailio database control tool. that's her. that's the whole name. iconic behavior honestly πŸ‘‘

✨ SYNOPSIS ✨

kamdbctl command [ parameters ]

that's it. command, then whatever parameters she needs. periodt πŸ’…

✨ DESCRIPTION ✨

so kamdbctl is a script whose whole job β€” her entire main character arc β€” is maintaining the database that some Kamailio modules need. some. not all. some. she's the friend who handles the database stuff so you don't have to πŸ˜ŒπŸ¦‹

🌸 Configuration 🌸

bestie, before you can even use kamdbctl, you HAVE to pick a database engine in the kamctlrc file. no engine, no vibes. the way that this works: you just change the DBENGINE parameter in the respective section in the kamctlrc file. that's the assignment πŸ“

the valid values are, in all their glory:

  • MYSQL
  • PGSQL
  • ORACLE
  • DBTEXT

and the default? the default is 'none'. yeah. she ships with nothing selected. you gotta choose your own destiny fr fr πŸ™ˆ

also, the username, the password, the database name and all the other settings can be configured by editing the kamctrl script. (yes, that's kamctrl right there, not kamctlrc β€” I said what the page said, don't come for me 😭)

✨ COMMANDS ✨

want the list of available commands? run kamdbctl help and she will tell you everything. literally just ask her 🫢

✨ NOTES ✨

heads up, lowkey important: several commands are not available for some of the database systems. so if something's acting like it doesn't exist, it might just not exist for your engine. not a bug, just a personality difference πŸ’€

✨ FILES ✨

the sacred texts, the config files in question:

  • /etc/kamailio/kamctlrc
  • /usr/local/etc/kamailio/kamctlrc
  • ~/.kamctlrc

✨ AUTHORS ✨

the whole squad is listed in /usr/share/doc/kamailio/AUTHORS. go say hi to them, they ate πŸŽ€

✨ SEE ALSO ✨

the full documentation on Kamailio is available at https://www.kamailio.org β€” go read it, it's giving encyclopedia but make it slay πŸ“šβœ¨

mailing lists, aka where the community hangs out:

  • sr-users@lists.kamailio.org β€” the Kamailio user community 🌈
  • sr-dev@lists.kamailio.org β€” the Kamailio development community πŸ”₯

and that's the whole page, no cap. go configure your DBENGINE, run kamdbctl help, and live your best database-maintenance life. i believe in you πŸ’–

βœ¨πŸ’– this was Kamailio, dated 20.11.2017, and kamdbctl(8) says bye bestie, hydrate and back up your database! πŸ’–βœ¨

πŸ“¦ where this page comes from