Connect to SQL Server from Kali & CMD

Kali Linux

Enable MySQL

Check status if active

Connect with the default user(localhost)(no password)

Now run your queries

CMD

To connect to MS SQL Server

Copy the Server name and enter the following command in the command prompt (cmd)

If successful : 1> should appear meaning line 1

Now I have a database named MyDB

To enter the database through cmd:

Type command and enter go in next line then press enter to run previously entered commands.

Now run your queries

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store