Where can I find 50-server.cnf original?

Hey,

I made a lot of modifications on /etc/mysql/mariadb.conf.d/50-server.cnf with gpt4 and I think that it mades a lot of mistakes, my server is laggy that ever and I can’t find the original file on the github

Is there a way to recover it?

Thanks so much!

Try docker-mariadb/etc/mysql/mariadb.conf.d/50-server.cnf at master · sismics/docker-mariadb · GitHub

2 Likes

Use these commands to obtain the original file from the package you have installed:

apt install binutils
mkdir /tmp/mariadb
cd /tmp/mariadb/
cp /etc/mysql/mariadb.conf.d/50-server.cnf 50-server.cnf.backup
apt download mariadb-server 2>/dev/null
ar x *deb
tar xf data.tar.xz
cp etc/mysql/mariadb.conf.d/50-server.cnf /etc/mysql/mariadb.conf.d/50-server.cnf
systemctl restart mariadb
2 Likes

Thanks to both of you that helped me a lot!

3 Likes