被巧弦念要建部落格很久了,一方面是懶,一方面是上次開啟wordpress的mu
一堆問題,所以決定要另外開database與account來建置.
於是轉址問題也要一並解決.就還是沿用no-ip.org.
再來就是建DB,要從User開始建起,找一下語法,記錄一下瞜!
-- 建立本地端使用者"testau" CREATE USER 'testau'@'localhost'; -- 設定密碼給"testau" SET PASSWORD FOR 'testau'@'localhost' = PASSWORD( 'testau_paswd' ); -- 建立資料庫"testdb" CREATE DATABASE IF NOT EXISTS `testdb` ; -- 把資料庫"testdb"給剛建立的使用者"testau" GRANT ALL PRIVILEGES ON `testdb` . * TO 'testau'@'localhost'; |
refer:
http://note.tc.edu.tw/741.html
http://technet.microsoft.com/zh-tw/library/ms181627.aspx
Facebook Comments