Home » Mysql » How can I run an SQL script in MySQL?

How can I run an SQL script in MySQL?

Posted by: admin May 26, 2018 Leave a comment

Questions:

I am new to MySQL. I want to execute a text file containing SQL queries.

I tried to run source /Desktop/test.sql and received the error,

mysql> . \home\sivakumar\Desktop\test.sql ERROR: Failed to open file '\home\sivakumar\Desktop\test.sql', error: 2
Answers: