To show a database we follow some step and that is:
1.cd.. (dot dot)
2.cd.. (dot dot)
3.cd xampp
4.cd mysql
5.cd bin
6.mysql -u root
7.show databases;

cd means command.Why do we write cd.. ? When we open cmd then we see like this:

if we write cd.. then it moves the directory back one directory like this:

When we again write cd.. then it moves directory back one directory and it goes to root. If we use cd\ in first step then it directly goes root or drive.If our c drive haven’t enough space then we can install xampp in other drive like D drive.Then we write this keyword: D:
substitute for step 1 and 2.
In step 3 : cd xampp means we command xampp folder.
In step 4: cd mysql means we command mysql.
In step 5: cd bin means we command bin.
In step 6: -u root means user name is root.Why do we write root? In bin folder we have all application of mysql now we connect to mysql database.Now we write by default user name root and password is nothing.
And step 7: display database.
Leave a comment