謝謝板上各位高手的提醒
我的MySQL的root密碼已經解決哩
感恩
但現在問題是在於新增帳號
當然帳號也已經新增完畢哩密碼也設定哩
但對於鳥哥的講義有點不懂
[root@linux ~]# mysql -u root -p
Enter password: <==如前所述,你必須要輸入密碼嘛!
mysql> create database dmtsai; <==注意每個指令後面都要加上分號 (;)
Query OK, 1 row affected (0.01 sec)
mysql> grant all privileges on dmtsai.* to dmtsai@localhost
identified by 'your.password' ;
Query OK, 0 rows affected (0.00 sec)
mysql> show databases;
+----------+
| Database |
+----------+
| dmtsai | <==看見沒?多一個這個資料庫啦!
| mysql | <==主要用來記錄 MySQL 的帳號、主機等等重要資訊的主要資料庫!
| test |
+----------+
3 rows in set (0.00 sec)
mysql> exit
我的問題在於這段
mysql> grant all privileges on dmtsai.* to dmtsai@localhost
identified by 'your.password' ;
就我的認知就是對我新增的帳號dmtsai增加上他的密碼
但問題是grant all privileges on 帳號 ===> 是啥意思
為何要在帳號後面加上 .*
然後
to dmtsai@localhost 又是啥意思 to 帳號@localhost
最後 identified by 'your.password' ; 就是要我打密碼對吧
希望有大大可以解釋一下
感恩
當然我的新增帳號不會是 dmtsai拉 有修改一下
哈哈
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 219.86.170.117
推
07/11 17:01, , 1F
07/11 17:01, 1F
推
07/11 17:59, , 2F
07/11 17:59, 2F
推
07/11 18:42, , 3F
07/11 18:42, 3F
→
07/11 19:09, , 4F
07/11 19:09, 4F
推
07/11 20:59, , 5F
07/11 20:59, 5F
→
07/11 23:38, , 6F
07/11 23:38, 6F
推
07/12 11:01, , 7F
07/12 11:01, 7F
討論串 (同標題文章)
以下文章回應了本文:
完整討論串 (本文為第 1 之 3 篇):