title: How to run sql in sublime text 3?
body: <pre><code>{
      &quot;cmd&quot;: [&quot;C:\\xampp\\mysql\bin\\mysql.exe&quot;, &quot;-u&quot;, &quot;root&quot;, &quot;-e&quot;, 
          &quot;source $file&quot;, &quot;-t&quot;], &quot;selector&quot;: &quot;source.sql&quot;,    
  }
  </code></pre>
  <p>i created build MYsql like the code above, after that i created database called bambang, import my sql file named hr.sql.</p>
  <pre><code>CREATE DATABASE bambang;
  USE bambang;
  source C:\Users\Mehong\Documents\export_mysql\hr.sql;
  </code></pre>
  <p>Then i want to show are tables in hr.sql with <em>SHOW tables</em> but i saw nothing.
  i tried in my cmd and it worked. why couldn't i run it in sublime ?</p>
  <pre><code>CREATE DATABASE bambang;
  USE bambang;
  source C:\Users\Mehong\Documents\export_mysql\hr.sql;
  SHOW tables;
  
  [WinError 2] The system cannot find the file specified
  [cmd: ['C:\\xampp\\mysql\x08in\\mysql.exe', '-u', 'root', '-e', 'source C:\\Users\\Mehong\\Documents\\export_mysql\\mencoba.sql', '-t']]
  [dir: C:\Users\Mehong\Documents\export_mysql]
  [path: C:\windows\system32;C:\windows;C:\windows\System32\Wbem;C:\windows\System32\WindowsPowerShell\v1.0\;C:\windows\System32\OpenSSH\;C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common;C:\Program Files\NVIDIA Corporation\NVIDIA NvDLISR;C:\Users\Mehong\AppData\Local\Microsoft\WindowsApps;]
  [Finished]
  </code></pre>