SQL from command prompt in Windows – Programmerbay https://programmerbay.com A Tech Bay for Tech Savvy Mon, 04 Jul 2022 06:29:38 +0000 en-US hourly 1 https://wordpress.org/?v=6.5.5 https://programmerbay.com/wp-content/uploads/2019/09/cropped-without-transparent-32x32.jpg SQL from command prompt in Windows – Programmerbay https://programmerbay.com 32 32 Connect to SQL from command prompt in Windows https://programmerbay.com/steps-to-work-with-sql-using-command-prompt/ https://programmerbay.com/steps-to-work-with-sql-using-command-prompt/#respond Mon, 22 Jul 2019 16:06:00 +0000 https://www.programmerbay.com/steps-to-work-with-sql-using-command-prompt/

After installing the Xampp for Windows, you  can use command prompt for practicing SQL on your desktop.
These are the following steps for using command prompt in order to do SQL practice.

1. Firstly, go to Start tab from your desktop and type in command prompt in the search box.

 

command%2Bprompt1

 

2. In command prompt, type in following path as mentioned below.
( Note: Xampp  should be installed and services must be started specially Mysql from its control panel ‘go there’).
  
C:\Users\Sandeep>cd/     /* ‘cd/’ is used to go to the root directory */
C:\>cd xampp             /* ‘cd’ is used to change the path */
C:\xampp>cd mysql        
C:\xampp\mysql>cd bin    / These commands simply represent ‘C:xamppmysqlbin’ */

command%2Bprompt


3. Now, you need to specify your MySQL username  which is usually root  and there password don’t required .

C:\xmapp\mysql\bin>mysql -u root -p

command%2Bpromp2t


4. Now you are in MySQL.

command%2Bprompt3





]]>
https://programmerbay.com/steps-to-work-with-sql-using-command-prompt/feed/ 0