Why am I getting the error 1064 (42000) while impo

2019-03-02 04:50发布

问题:

Whenever I try import a database.csv, I get this:

http://prntscr.com/eo5eyg

Syntax error at line 1.

I typed

mysql -u root tatoeba3 < tatoeba_database.sql

tatoeba3 is the database file (.csv) tatoeba_database.sql is the "final destination"

Alsom where should I put tatoeba3? For now, it's at

C:\xampp\htdocs\tatoeba2

I'm doing according the following: 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)]

Also, I'm getting this:

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