MySQL新增帳號的問題 - Linux
By Freda
at 2010-07-11T15:57
at 2010-07-11T15:57
Table of Contents
謝謝板上各位高手的提醒
我的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拉 有修改一下
哈哈
--
Tags:
Linux
All Comments
By Faithe
at 2010-07-13T09:24
at 2010-07-13T09:24
By Joe
at 2010-07-14T05:59
at 2010-07-14T05:59
By Emma
at 2010-07-18T07:13
at 2010-07-18T07:13
By Hazel
at 2010-07-22T11:01
at 2010-07-22T11:01
By Anonymous
at 2010-07-25T22:48
at 2010-07-25T22:48
By Kumar
at 2010-07-27T06:51
at 2010-07-27T06:51
By Mia
at 2010-07-31T03:29
at 2010-07-31T03:29
Related Posts
MySQL的root管理者設定密碼的問題!!!
By Rosalind
at 2010-07-11T13:00
at 2010-07-11T13:00
Mail Server 出問題跟眾前輩請教
By Olive
at 2010-07-11T12:52
at 2010-07-11T12:52
請問opensuse怎麼裝mplayer的外掛w64codecs?
By Irma
at 2010-07-11T09:43
at 2010-07-11T09:43
測試Apache的問題
By Dinah
at 2010-07-10T22:31
at 2010-07-10T22:31
MySQL啟動的問題
By Agnes
at 2010-07-10T22:20
at 2010-07-10T22:20