2011年7月11日 星期一

[mysql] input data to database


1.先建立一個 xxx.sql 的檔案。

2.進入 mysql : mysql -u root -p (comment : u is user , p is password).

3.show databases; (show which database do I want to use).

use xxxx(database).

source /home/luke/test_sql/books.sql (This is a path /home/luke/test_sql/ depend on which file I put)




Related Posts:

0 意見:

張貼留言