If you’re at the MySQL command line mysql>
you have to declare the SQL file as source
.
mysql> source \home\user\Desktop\test.sql;
More Related Contents:
- How do I import an SQL file using the command line in MySQL?
- How to export and import a .sql file from command line with options? [duplicate]
- Mysql: Setup the format of DATETIME to ‘DD-MM-YYYY HH:MM:SS’ when creating a table
- Downloading MySQL dump from command line
- List of Stored Procedures/Functions Mysql Command Line
- How to remove all MySQL tables from the command-line without DROP database permissions? [duplicate]
- Dump a mysql database to a plaintext (CSV) backup from the command line
- How to connect to MySQL from the command line
- How to start MySQL server from command line on Mac OS Lion?
- Create a Cumulative Sum Column in MySQL
- Equivalent of explode() to work with strings in MySQL
- mysql select dynamic row values as column names, another column as value
- Access denied for user ‘root’@’localhost’ (using password: YES) (Mysql::Error)
- MySQL DELETE FROM with subquery as condition
- SQL – IF EXISTS UPDATE ELSE INSERT INTO
- SELECT / GROUP BY – segments of time (10 seconds, 30 seconds, etc)
- Simple Random Samples from a Sql database
- node.js mysql error: ECONNREFUSED
- MySQL Select Date Equal to Today (having datetime as the data type)
- mysql root password forgotten
- How to deploy local MySQL database to Heroku
- Should I use MySQL blob field type?
- Does MySQL overwrite a column of same value on update?
- mysql like performance boost
- MySQL selecting yesterday’s date
- Does MySQL included with MAMP not include a config file?
- How do I write an SP in phpMyAdmin (MySQL)?
- Unserialize through query at database level itself
- Detecting utf8 broken characters in MySQL
- django cannot connect mysql in docker-compose