Answer the question
In order to leave comments, you need to log in
Why can't I import a table through the console on an Ubuntu server?
Went into MySQL:
mysql -u user -p
Enter password:
Welcome to the MariaDB monitor. Commands end with ; or \g.
Your MariaDB connection id is 833524
Server version: 10.1.43-MariaDB MariaDB Server
MariaDB [(none)]> use mydatabase
Database changed
MariaDB [mydatabase]> < /var/www/user/data/www/site.ru/backup/file.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 '< /var/www/user/data/www/site.ru/backup/file.sql' at line 1
MariaDB [mydatabase]> mydatabase < /var/www/user/data/www/site.ru/backup/file.sql;
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question