Ficar
September 6, 2024, 4:35pm
1
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!
themew
September 6, 2024, 4:40pm
2
2 Likes
sahsanu
September 6, 2024, 5:29pm
3
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
Ficar
September 6, 2024, 9:21pm
4
Thanks to both of you that helped me a lot!
3 Likes