2
0
mirror of https://github.com/acepanel/panel.git synced 2026-02-04 06:47:20 +08:00

feat: 数据库管理基本完成

This commit is contained in:
耗子
2024-11-26 03:50:54 +08:00
parent 3fbaecbe9e
commit 9a2e68e24e
15 changed files with 175 additions and 67 deletions

View File

@@ -199,7 +199,7 @@ func (s *Service) SetRootPassword(w http.ResponseWriter, r *http.Request) {
return
}
} else {
if err = mysql.UserPassword("root", req.Password); err != nil {
if err = mysql.UserPassword("root", req.Password, "localhost"); err != nil {
service.Error(w, http.StatusInternalServerError, "%v", err)
return
}