cvm-mysql(8)
β¨ cvm-mysql β the MySQL module, bestie edition β¨
okay so this is cvm-mysql(8), and it lives in the System Manager's Manual section of your man pages π if you've ever wanted your credential validation to come straight out of a MySQL database, this is literally the girl for the job.
πΈ SYNOPSIS πΈ
cvm-mysql
that's it. that's the whole invocation. no flags, no arguments, she just goes π
π CREDENTIALS π
- Pass phrase β you're handing her a pass phrase, and she's gonna check it π«Ά
π¦ DESCRIPTION π¦
So here's the vibe: this module goes and queries a MySQL database for the account name, then compares the pass phrase that's stored in there against the one you gave her, using crypt(3). that's the whole plot, no cap β¨
π CONFIGURATION VARIABLES π
these are the env vars she reads, and ngl you gotta get them right or nothing happens:
CVM_MYSQL_DEFAULT_FILEβ the full path of the defaults file to read if the next variable down is set. If it's not set, the file$HOME/.my.cnfgets read instead (that's the MySQL default, iykyk).CVM_MYSQL_DEFAULT_GROUPβ if you set this, the module reads connection default options from the named group in the defaults file from up above πCVM_MYSQL_HOSTβ the hostname or IP of the MySQL server. If you don't set it, she just assumes you're connecting to the local host πCVM_MYSQL_USERβ the MySQL login ID to connect as. If you don't set it, she assumes the invoking user πCVM_MYSQL_PASSβ the password for that user up there β¬οΈCVM_MYSQL_DBβ the database name. this one must be set, periodt π¨CVM_MYSQL_PORTβ the port number for the TCP/IP connection (only used if the server is not local)CVM_MYSQL_POSTQ(optional) β the SQL query to execute after the credentials have been validated, seecvm-sql(7)πCVM_MYSQL_PWCMP(optional) β the password comparison module to useCVM_MYSQL_SOCKETβ the path to the socket that should be used for connections to a local server πCVM_MYSQL_QUERY(optional) β the SQL query to issue to retrieve the row containing the account information from the database, seecvm-sql(7)π
π SEE ALSO π
cvm-sql(7)cvm-pgsql(8)cvm-pwfile(8)cvm-qmail(8)cvm-unix(8)cvm-vmailmgr(8)cvm-benchclient(8)cvm-checkpassword(8)cvm-testclient(8)
and if you wanna go down the rabbit hole π³οΈπ:
http://untroubled.org/pwcmp/pwcmp.html
http://untroubled.org/cvm/cvm.html
fr fr bestie, go read cvm-sql(7) if the query vars are confusing you, she explains the whole SQL situation way better than I can in one breath π
that's the whole page!! mwah π this was cvm-mysql(8) from the System Manager's Manual, and yeah the footer just says cvm-mysql(8) again because the page is that iconic π
β¨ no date, no version, just vibes. stay hydrated, go validate some credentials π«Άπ
π¦ where this page comes from
- debian bookworm: cvm-mysql 0.97-3 Β· GPL-2.0-or-later
- ubuntu jammy: cvm-mysql 0.97-2 Β· GPL-2.0-or-later
- ubuntu noble: cvm-mysql 0.97-3.1build1 Β· GPL-2.0-or-later
- ubuntu questing: cvm-mysql 0.97-4
- ubuntu resolute: cvm-mysql 0.97-4build1 Β· GPL-2.0-or-later
- ubuntu stonking: cvm-mysql 0.97-4build1 Β· GPL-2.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms