Connect to SQL Server from Kali & CMD

Mohammed Waseem
Sep 11, 2022

Kali Linux

Enable MySQL

Check status if active

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

Now run your queries


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