登入資料庫方式,請執行以下的命令:
sudo mysql -u root -p

建立一個新資料庫,我們建立“itslinuxfoss”資料庫為例:
CREATE DATABASE itslinuxfoss;

GRANT ALL PRIVILEGES ON itslinuxfoss.* TO 'itslinuxfoss'@'localhost' IDENTIFIED BY "Root";

儲存設定並離開 MariaDB:
FLUSH PRIVILEGES;
QUIT;

登入資料庫方式,請執行以下的命令:
sudo mysql -u root -p
建立一個新資料庫,我們建立“itslinuxfoss”資料庫為例:
CREATE DATABASE itslinuxfoss;
GRANT ALL PRIVILEGES ON itslinuxfoss.* TO 'itslinuxfoss'@'localhost' IDENTIFIED BY "Root";
儲存設定並離開 MariaDB:
FLUSH PRIVILEGES;
QUIT;