Getting started with MySQL using wamp server

After installing the wamp server on your computer follow the below steps.

Step 1 : Run the command prompt. 

Step 2 : Copy the path of the bin folder of the wamp server. usually it is,

C:\wamp64\bin\mysql\mysql5.7.19\bin

Step 3 : Go back to the command prompt and change the directory to the path you copied

C:\Users\admin>cd C:\wamp64\bin\mysql\mysql5.7.19\bin

Step 4 : Then type the command "mysql -u root -p", then press enter.

C:\wamp64\bin\mysql\mysql5.7.19\bin>mysql -u root -p

Step 5 : Then it will request the password, just enter because there isn't a password.

Enter password:

Step 6 : If you have successfully connected following message will be prompted.

Welcome to the MySQL monitor.  Commands end with ; or \g.
Your MySQL connection id is 3
Server version: 5.7.19 MySQL Community Server (GPL)
Copyright (c) 2000, 2017, Oracle and/or its affiliates. All rights reserved.
Oracle is a registered trademark of Oracle Corporation and/or its
affiliates. Other names may be trademarks of their respective
owners.
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
mysql>

Now you can start typing MySQL commands here onwards. To quit the wamp server simply type "quit".

mysql> quit
Bye

Comments

Post a Comment

Popular posts from this blog

Java ADF surfing through pages using buttons

SQL vs ORM