Why am I getting the error 1064 (42000) while importing using MariaDB/“mysql shell”?

你离开我真会死。 提交于 2019-12-31 03:51:07

问题


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)]>

来源:https://stackoverflow.com/questions/43011818/why-am-i-getting-the-error-1064-42000-while-importing-using-mariadb-mysql-she

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!