ERROR 2002 (HY000): Can't connect to local server through socket '/var/lib/mysql/mysql.sock' (2)

vpscanban

Verified User
Joined
Feb 9, 2022
Messages
39
I am using a licensed DirectAdmin with AlmaLinux and encountered an error when rebuilding mariadb:

```
ERROR 2002 (HY000): Can't connect to local server through socket '/var/lib/mysql/mysql.sock' (2)
```

Here are the commands that I ran:

```
cd /usr/local/directadmin/custombuild
./build update
./build set mysql_backup yes
./build set "mariadb" 10.3
./build set mysql_inst "mariadb"
./build "mariadb"

```
 

Attachments

  • CleanShot 2023-02-14 at 10.41.34.png
    CleanShot 2023-02-14 at 10.41.34.png
    184.8 KB · Views: 3
Hello,

Downgrading MariaDB is not supported. The only reliable way to downgrade is to restore from a full backup made before upgrading, and start the old version of MariaDB.


You might reinstall MariaDB 10.6, or recover your installation of 10.3 from backups.
 
I did an upgrade to 10.6. But doesn't seem to work. Please support me


cd /usr/local/directadmin/custombuild
./build update
./build set mariadb 10.6
./build set mysql_inst mariadb
./build set mysql_backup yes
./build mariadb
 

Attachments

  • CleanShot 2023-02-14 at 15.34.20.png
    CleanShot 2023-02-14 at 15.34.20.png
    69.6 KB · Views: 3
Back
Top