当前位置:网站首页>Tutorial on the principle and application of database system (003) -- MySQL installation and configuration: manually configure MySQL (Windows Environment)

Tutorial on the principle and application of database system (003) -- MySQL installation and configuration: manually configure MySQL (Windows Environment)

2022-07-01 16:23:00 Rsda DBA_ WGX

Database system principle and Application Tutorial (003)—— MySQL Installation and configuration : Manual configuration MySQL(windows Environmental Science )

One 、 install MySQL

1、 Double-click the installation file , The installation wizard as shown in the following figure pops up .

 Insert picture description here

2、 single click 【Next】 Button , Show user license agreement window , As shown in the figure below .

 Insert picture description here

3、 Choose 【I accept the terms in the License Agreement】 Options , single click 【Next】 Button , Pop up... As shown in the figure below 【 Choose the installation type 】 window .

 Insert picture description here

4、 single click 【Typical】, Choose a typical installation , Pop up... As shown in the figure below 【 Ready to start installation MySQL】 Interface , single click 【Install】 Start installation .

 Insert picture description here

5、 installation is complete . Cancel 【Launch the MySQL Instance Configuration Wizard】 Options , single click 【Finish】 End installation , Use manual configuration MySQL.

 Insert picture description here

Two 、 Configure environment variables

1、 find MySQL Installation path for , open bin Catalog , hold bin route 【C:\Program Files\MySQL\MySQL Server 5.5\bin】 Copy to clipboard , As shown in the figure below .

 Insert picture description here

2、 Right click on the desktop 【 This computer 】, choice 【 attribute 】, As shown in the figure below .

 Insert picture description here

3、 In the pop-up 【 Set up 】 Window , Input 【 Environmental Science 】, Then select from the drop-down list 【 Edit system environment variables 】, As shown in the figure below .

 Insert picture description here

4、 In the pop-up 【 System attribute 】 In the dialog box , single click 【 environment variable 】 Button , As shown in the figure below .

 Insert picture description here

5、 In the pop-up 【 environment variable 】 Select... In the dialog box 【Path】, And then click 【 edit 】 Button , As shown in the figure below .

 Insert picture description here

6、 In the pop-up 【 Edit environment variables 】 Dialog box, click 【 newly build 】 Button , hold MySQL Of bin Paste the path to the last line , As shown in the figure below .

 Insert picture description here

7、 single click 【 determine 】 Button to complete the configuration of environment variables .

Be careful : After the environment variable configuration is completed, it must be reopened cmd The command line window will take effect .

3、 ... and 、 Install and start MySQL service

1、 Open as administrator windows Command line window , As shown in the figure below .

 Insert picture description here

2、 In the command line window , Type the following command to install MySQL service

 Insert picture description here

3、 Enter the following command to start MySQL service

 Insert picture description here

4、 see MySQL Service information

(1) Right click on the desktop 【 This computer 】, choice 【 management 】, As shown in the figure below .

 Insert picture description here

(2) In the pop-up 【 Computer management 】 Select... In the dialog box 【 Services and Applications 】, And then click 【 service 】, Find MySQL service . You can see MySQL The service information is as follows :(1) name :MySQL;(2) state : Running ;(3) Start type : Automatically .

 Insert picture description here

Four 、 Set up root Login password of the account

After the above steps are set ,root The account has no login password by default . here ,root The account can log in directly , No password required . As shown in the figure below .

 Insert picture description here

by root Set the login password for the account : Use root Account login system , Execute the following command .

 Insert picture description here

Log back in MySQL, have access to root account number , password 【123456】 Login system , As shown in the figure below .

 Insert picture description here

原网站

版权声明
本文为[Rsda DBA_ WGX]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/182/202207011614090024.html