mysql_adaptor(4gx)
π¦ NAME π¦ β mysql_adaptor(4gx), Gromox admin reference
okay so bestie, meet mysql_adaptor(4gx) β the MySQL/MariaDB connector for user metadata and authentication. Thatβs the whole name vibe, and yes, weβre in the Gromox admin reference π .
πΈ DESCRIPTION πΈ
mysql_adaptor is a component for integrating user accounts from a MySQL/MariaDB database. iconic little connector behavior, no cap π«Ά.
β¨ CONFIGURATION DIRECTIVES β¨
The usual config file location is /etc/gromox/mysql_adaptor.cfg. Keep that path close, bestie π.
connection_numβ Number of SQL connections to keep active. Note that the SQL server may have limits in place, such asmax_connectionsandwait_timeout(cf.SHOW GLOBAL VARIABLES LIKE "wait_timeout"). Automatic reconnection happens by Gromox when a query is about to be executed. Default:8.enable_firsttimepwβ This flag determines whether non-LDAP users with no recorded password (emptyusers.passwordSQL column) will have the accountβs password set to whatever credential was passed along in the first authentication request. Default:no.mysql_dbnameβ Default:email.mysql_hostβ The hostname/IP address for contacting the SQL server. Default:localhost.mysql_passwordβ Default:(unset).mysql_portβ The TCP port number for contacting the SQL server. Default:3306.mysql_rdwr_timeoutβ This sets theMYSQL_OPT_READ_TIMEOUTandMYSQL_OPT_WRITE_TIMEOUToption values on the MySQL connection. Default:0 (no timeout).mysql_tls_certβ The path name of an optional client public key certificate file for authentication. Default:(empty).mysql_tls_keyβ The path name of an optional client private key file for authentication. Default:(empty).mysql_usernameβ Default:root.scan_intervalβ Default:1 minute.schema_upgradeβ This controls what to do when a database schema update is available. Because themysql_adaptorcomponent is loaded by many programs across potentially multiple machines, the basic default is to do nothing. Default:host:(system_hostname).host:xyzβ Perform automatic schema upgrades if the program which has loadedmysql_adaptorishttp(8gx)and only ifhttp.cfgβshost_idvalue matches xyz.(any other value)β No automatic schema upgrades are performed in the process which has loaded the component. The component may be unable to process or produce certain data, e.g. if it relies on a table that has not yet been created. Generally, no restart is needed when that upgrade is finally performed, because SQL queries just start working. However, there may be some caches, e.g. in thezcore(8gx)address book that could remain empty until the refresh timer expires or a manual reload is triggered.
π SIGNALS π
Upon receipt of SIGHUP, configuration files are re-read, but only a few select directives can be changed this way, as many parts do not implement reload. So yeah, hot-reload is giving limited edition β donβt assume every directive gets the glow-up π.
bestie, that βonly a few select directivesβ part is the real warning here: many parts do not implement reload, fr fr.
π SEE ALSO π
cute little footer sign-off: this page is brought to you by Gromox, titled mysql_adaptor(4gx) β and the supplied footer doesnβt print a date, so Iβm not inventing one, bestie ππ¦β¨.
π¦ where this page comes from
- alpine 3.24: grommunio-gromox-doc 3.6-r0 Β· AGPL-3.0-or-later
- π the page's license: CC-BY-SA-4.0 or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms