首先是sudo apt install mariadb-server安裝上數(shù)據(jù)庫(kù)。 然后sudo su 切換至 Root 終端,通過(guò)mariadb -uroot -p登錄到數(shù)據(jù)庫(kù),如果默認(rèn)密碼不是空的話(huà),可以查看 '/etc/mysql/debian.cnf'。 這時(shí)候要做的是創(chuàng)建新用戶(hù):create user 'admin'@'localhost' identified by 'mysql'。 然后給新用戶(hù)設(shè)置權(quán)限:grant all ...
www.dbjr.com.cn/article/1251...htm 2025-6-1