我正在尝试做一件非常简单的事情--将一个表导入我的数据库。mysql> dbname < libmysql.sql;
corresponds to your MySQL server version for the right syntax to use near 'dbname <
libmysql.sql
我正在尝试各种方法来创建一个数据库,并从命令行使用sql脚本填充它。mysql --user=root --password=hello --execute=create database test --source='accounts.sql'-> starts to print help 或者是唯一的数据库: mysql --user=root --password=hello --execute=create database