当前位置:网站首页>Two methods of MySQL database login and logout

Two methods of MySQL database login and logout

2022-06-27 18:45:00 Ink Sky Wheel

Click... Under the title Ask a thousand questions and know a thousand things , Read every day after watching IT publication


MySQL After the database is started , Our next operation is to log in and use MySQL database , So how do we log in and out MySQL Database ?


Next, Qianqian little sister sorted out two kinds of login and logout for everyone MySQL Database method , The details are as follows :


One 、 Directly use the command to perform login and logout


1、 open DOS Command line window , Input “mysql –uroot -p” command , Enter the password again , Login successfully MySQL database , As shown in the figure :



2、 Input “show databases;” Command to view all the libraries in the database , As shown in the figure :



3、 Input “exit;” Command to exit MySQL database , As shown in the figure :




Two 、 Use Command Line Client Login and logout MySQL database


1、 single click “ Start — Program —MySQL— Click on “MySQL Server 5.5”, As shown in the figure :



2、 single click MySQL 5.5 Command Line Client, As shown in the figure .



3、 Input MySQL Login password for , Then press enter , Login succeeded at this time MySQL database , As shown in the figure .


4、 sign out MySQL The way and use of database DOS The command line exits in the same way .

( Input “exit;” Command to exit MySQL database )



Compare the two methods DOS Command line window login and exit MySQL More cumbersome , While using Command Line Client Users can log in more easily MySQL database .


You can choose two types of login according to your preferences MySQL One of the methods of database , But Qianqian suggested that you master both methods .


If you are learning MySQL There are other problems in the database process , Welcome to leave a message below. We will reply to you as soon as possible , Qianwen Qianzhi grows up with you .


Programming industry recommended good books 《MySQL From entry to mastery 》:


MySQL The industry recommends self-study good books

( Click on the bottom left “ Read the original ” Learn more )

Previous recommendation

2 Monthly programmer salary report Average monthly salary 15K+

Getting started with databases :4 Large non relational database classification

Getting started with databases : Two database categories and seven differences

Getting started with databases : What is a database ? What are the types of databases ?

Getting started with databases :sql And MySQL The difference between


原网站

版权声明
本文为[Ink Sky Wheel]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/178/202206271615599532.html