Home Download Buy Blog Forum Support

Sublime build Mysql

Sublime build Mysql

Postby edi9999 on Thu May 23, 2013 8:39 am

I would like to set up a **mysql builder** for sublime text, here is my `.sublime-build file`:

Code: Select all
   "cmd": ["mysql < C:/sql/test.sql > C:/sql/result.txt"],

This command works in the command line, but not in sublime (it throws [Error 2] The specified file was not found)

Thanks in advance!

EDIT: the command works if I add option
Code: Select all
, but I don't know why
Posts: 2
Joined: Thu May 23, 2013 8:37 am

Re: Sublime build Mysql

Postby iamntz on Thu May 23, 2013 9:12 am

cmd accepts only an array of options, no spaces involved. So to have that working you should actually have:

Code: Select all
["mysql", "<", "C:/sql/test.sql", ">", "C:/sql/result.txt"]

(also you may change the slashes to double backslashes like so: c:\\sql..)
Posts: 1035
Joined: Fri Apr 29, 2011 8:52 am
Location: Romania

Return to Technical Support

Who is online

Users browsing this forum: Yahoo [Bot] and 22 guests