GOLF(2gg)
π GOLF(2gg) β mariadb-database π
okay bestie, welcome to the golf manual, section 2gg β¨ this is the development corner of the docs and we're about to talk about your MariaDB database config. no cap.
πΈ NAME πΈ
mariadb-database β Golf documentation (database) π
β¨ DESCRIPTION β¨
so the MariaDB configuration file is literally written as a MariaDB client options file. that's the whole vibe. π
you can peep all the parameters that exist over at https://mariadb.com/kb/en/configuring-mariadb-connectorc-with-option-files/#options π
but lowkey? most of the time you're only gonna use a few of those options. fr fr. like, for a local connection it's giving:
[client]
user=myuser
password=mypwd
database=mydb
socket=/run/mysqld/mysqld.sock
okay so let's break down that file because it's iconic:
userβ the MariaDB user π«Άpasswordβ the password for that MariaDB userdatabaseβ the MariaDB database namesocketβ where the MariaDB communication socket lives (this assumes your database is local to your computer! if your database is across the network you would not use sockets, bestie π)
if you use passwordless MariaDB login (like when your MariaDB user name is the same as your Operating System user name, and the unix socket plugin is what's handling authentication), then the password would just be empty. yes, empty. main character energy. β¨
to get the location of the socket, you might use:
sudo mysql -u root -e "show variables like 'socket'"
slay. now you know where your socket's at. π
π¦ SEE ALSO π¦
Database
begin-transaction commit-transaction current-row database-config-file db-error mariadb-database postgresql-database rollback-transaction run-query sqlite-database See all documentation π
and that's the whole page, bestie!! this lil' cutie came from version $VERSION and it's dated $DATE β the GOLF(2gg) era, periodt. πβ¨π
π¦ where this page comes from
- ubuntu questing: golf 601.4.41-1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms