1.mysql -uroot -p12345678 2.source /home/xiaogang/test.sql 注意:sql是表相关的操作,可能还需在source之前,确定数据库。 例如 use dbname; ource /home/xiaogang/select.sql