2
0
mirror of https://github.com/acepanel/panel.git synced 2026-02-04 07:57:21 +08:00

feat: 测试修改socket

This commit is contained in:
2026-01-17 21:42:28 +08:00
parent 50bb9af9bc
commit 4d2588e449
6 changed files with 13 additions and 13 deletions

View File

@@ -285,7 +285,7 @@ func (r *backupRepo) createMySQL(to string, name string) error {
if err != nil {
return err
}
mysql, err := db.NewMySQL("root", rootPassword, "/tmp/mysql.sock", "unix")
mysql, err := db.NewMySQL("root", rootPassword, "/run/mysql.sock", "unix")
if err != nil {
return err
}
@@ -440,7 +440,7 @@ func (r *backupRepo) restoreMySQL(backup, target string) error {
if err != nil {
return err
}
mysql, err := db.NewMySQL("root", rootPassword, "/tmp/mysql.sock", "unix")
mysql, err := db.NewMySQL("root", rootPassword, "/run/mysql.sock", "unix")
if err != nil {
return err
}