LMSouq
database Open

How to run SQL script in MySQL?

US
user1160432
1 month ago
3 views
Problem Description
I want to execute a text file containing SQL queries, in MySQL. 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 Any idea on what I am doing wrong?

AI-Generated Solution

Powered by LMSouq AI · GPT-4.1-mini

✓ Solution Ready
Analyzing problem and generating solution…
Was this solution helpful?
Back to Knowledge Base