MySQL8建立庫,建立用戶並授權

  一、首先登錄到root用戶: mysql -u root -p mysql 二、建立用戶: create user '用戶名'@'host' identified with mysql_native_password by '密碼';sql (注:host:指定該用戶在哪一個主機上能夠登錄,若是是本地用戶可用localhost,若是想讓該用戶能夠從任意遠程主機登錄,能夠使用通配符%)數據庫 (
相關文章
相關標籤/搜索