每当输入 mysql -u username [-p password] database_name < tatoeba_database.sql
我明白了
ERROR 1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'mys ql -u root tatoeba < tatoeba_database.sql' at line 1 MariaDB [tatoeba]>
还有其他方法可以做这样的事情吗?我错过了什么吗?
附注我正在关注这篇文章:https://github.com/Tatoeba/tatoeba2/wiki/How-to-install-Tatoeba
最佳答案
删除[-p密码]
mysql -u username -p database_name < tatoeba_database.sql
然后手动输入密码
关于mysql - 如何在MariaDb中创建表并将数据导入到sql中?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/43015913/