使用MariaDB /“mysql shell”导入时为什么会出现错误1064(42000)?

时间:2017-03-25 02:23:21

标签: mysql sql csv virtual-machine mariadb

每当我尝试导入database.csv时,我都会这样:

http://prntscr.com/eo5eyg

第1行的语法错误。

我打字

  

mysql -u root tatoeba3< tatoeba_database.sql

tatoeba3是数据库文件(.csv) tatoeba_database.sql是"最终目的地"

Alsom 哪里我应该把tatoeba3?现在,它在

  

C:\ XAMPP \ htdocs中\ tatoeba2

我按照以下方式做了:https://github.com/Tatoeba/tatoeba2/wiki/How-to-install-Tatoeba

MariaDB [(none)]> mysql -u root tatoeba3 < 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 tatoeba3 < tatoeba_database.sql' at line 1 MariaDB [(none)]

另外,我得到了这个:

MariaDB [(none)]> use tatoeba3; ERROR 1044 (42000): Access denied for user ''@'localhost' to database 'tatoeba3' MariaDB [(none)]>

0 个答案:

没有答案