Last Updated on 2019-03-23 by william
每次都會忘記, 而且之前一點都不在意把使用者與root權限分開,但資安還是要顧著.
MariaDB>CREATE DATABASE 資料庫名稱 CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;
新增使用者,密碼與權限
MariaDB> create database 資料庫名稱; MariaDB> create user 使用者帳號@localhost identified by '使用者登入密碼'; MariaDB> grant all privileges on 資料庫名稱.* to 使用者帳號@localhost; MariaDB> flush privileges; MariaDB> quit
[…] Reference :https://kafeiou.pw/2019/03/23/1629/mysqlmariadb%E6%96%B0%E5%A2%9E%E8%B3%87%E6%96%99%E5%BA%AButf-8/ht… […]