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)
訂閱:
張貼留言 (Atom)
0 意見:
張貼留言