Source Query Mysql, Source Command Mysql, Run MySql Scripts from Text file in Command Prompt

Always have to type in codes in command prompt ??????

Cant we write codes in other text editor???????

We can type in queries in additional text editor (for example : Notepad) and then we can run the code in the same manner using the command prompt By using the source statement

Presume we make a file named mine.txt (notepad)

and put the query in that text file

Make sure you put the file inside bin folder you can run this command

 source mine.txt
(this query will run without a ';' as-well)

Simple and fast PlanetGhost Mysql Tutorial with Examples.

If You Think This Post has helped you buy us a Coffee :)

Make Donation

  • Other: $

Donate now