MySQL startup and shutdown-login and logout-structure directory

table of Contents

 

MySQL service startup and shutdown

MySQL login under docs

MySQL exit

MySQL directory structure


MySQL service startup and shutdown

      1. Manually open the management of this computer-->Services and Applications-->Services-->Find mysql to start or close the service.

         2.cmd-->services.msc Open the service window-->Find mysql to start or close the service.

            3. Use the administrator to open cmd

                        net start mysql: open mysql service

                        net stop mysql: Shut down the mysql service

 

MySQL login under docs

               1.mysql -uroot -p password

                 2.mysql -hip -uroot -p the password ip address of the connection target

                  3.mysql --host=ip --user=root --password=The password of the connection target

MySQL exit

         1.exit

          2.quit

 

 

MySQL directory structure

   1. MySQL installation directory: basedir="D:/develop/MySQL/"

             * Configuration file my.ini

  2. MySQL data directory: datadir="C:/ProgramData/MySQL/MySQL Server5.7/Data/"

       Several concepts:

           * Database: Folder

           * Table: File

           * Data: Data

 

Guess you like

Origin blog.csdn.net/Jason_LH1024/article/details/102725945