This question already has answers here:
How do I import an SQL file using the command line in MySQL?
                                
                                    (47个答案)
                                
                        
                                2年前关闭。
            
                    
我正在尝试恢复mydb表的空数据库,但是mysqlimport的语法似乎并不简单。我之前做mysqldump时创建了文件emptyDbs。

mysqlimport mydb/var/tmp/emptyDbs

最佳答案

 mysql statsdb < /var/tmp/emptyDbs

10-06 03:37