当前位置:网站首页>MySQL installation and configuration
MySQL installation and configuration
2022-07-02 18:03:00 【Sauerkraut】
MySQL brief introduction
MySQL The earliest history of the world can be traced back to 1979 year ,Monty Widenius use BASIC Design a report tool , After a while , Use this tool again C Language rewriting , Migration to UNIX platform , At that time, it was just an underlying report oriented storage engine .
1985 year , Three Swedes David Axmark、Allan Larsson and Michael Widenius Set up a company , This is it. MySQLAB The forerunner of , The company didn't originally develop database products , But in the process of realizing the idea, we need a database and hope to use open source products . But at that time, there was no suitable choice . Therefore, I designed a method to access data by using index sequence , That is to say ISAM(Indexed Sequential Access Method) The predecessor of the core algorithm of the storage engine . This software is one of the founders Michael Widenius daughter My Name of .MySQL Of Logo Dolphin logo , As shown in the figure below , Dolphins represent speed 、 power 、 Accuracy, etc MySQL Features owned .Logo The name of Chinese dolphin is "sakila", It is developed by open source software developers from Eswatini, Africa Ambrose Twebaze Provided . according to Ambrose said ,Sakila It comes from a kind of SiSwati The Swaziland dialect of , Also in Ambrose My hometown is Uganda, near Tanzania Arusha The name of a small town in .

MySQL It's a free open source 、 small 、 Relational database management system . With the continuous improvement of the database function 、 Continuous improvement of performance , Increasing reliability .
2000 year 4 month ,MySQL Tidied up the old storage engine , Name it MyISAM.
2001 year , Support transaction processing and row level lock storage engine InnoDB Be integrated into MySQL Distribution in , This version integrates MyISAM And InnoDB Storage engine ,MySQL And InnoDB The official combined version of is 4.0.2004 year 10 month , Released the classic 4.1 edition . 2005 year 10 month , Released a version of the milestone ,MySQL 5.0, stay 5.0 A cursor is added to the , stored procedure , trigger , View and transaction support . stay 5.0 In later versions ,MySQL It clearly shows the development pace towards high-performance database .MySOL The company 2008 year 1 month 16 Number by SUN Company purchase , And in the 2009 year SUN Has been Oracle Acquisition .MySQL Our future is bright .
MySQL Although it's free , But like other commercial databases , It has the versatility of database system , Provides access to data 、 increase 、 modify 、 Delete or more complex data operations . meanwhile MySQL It is a relational database system , Support standard structured query language , meanwhile MySQL Different program interfaces and link libraries are provided for the client , Such as C、C++、Java、PHP etc. . at present MySQL Widely used in Internet Small and medium-sized websites on . Because of its small size 、 Fast 、 Low total cost of ownership , Especially open source , Therefore, many small and medium-sized websites choose to reduce the total cost of ownership of websites MySQL As website database .
MySQL Download and install
download
1. Get into MySQL Official website Official website address , choice Downloads.

2. Flip down , find MySQL Community (GPL) Downloads », Click to enter .

3. choice MySQL Community Server

4. Download the decompressed version

5. The following page will pop up , Choose to download directly without logging in ( The download process may be a little slow )

To configure
1. After downloading , Unzip it into a directory you can find .

2. Run as administrator cmd, And switch to mysql Of bin Catalog .


3. Input mysqld --install install mysql service , The command to remove the service is mysqld --remove
![]()
4. Input mysqld --initialize --console initialization , Remember the initial password

5. Then input net start mysql Start the service , The stop service command is net stop mysql

6. Finally, log in mysql -uroot -p, The following interface shows that you have successfully logged in

7. Then change the password yourself set password for 'root'@'localhost'=' Your new password '

8. Input quit You can quit mysql Oh

9. For the convenience of login operation MySQL, Set an environment variable , Get into bin Catalog , Then copy the path , Add to system environment variable

MySQL What to do if the password is forgotten ?
1. Open... With administrator privileges cmd, close mysql service
> net stop mysql2. Set to start mysql Skip permission verification when serving
> mysqld --console --skip-grant-tables --shared-memory3. Reopen ! Reopen ! Reopen a cmd window ( With administrator rights ), Don't close the previous window , Then input mysql, If successful login , As shown in the figure below :

4. Use the specified database
stay MySQL There are many databases in the system , Before operating the database, you must determine which database it is . Use use Command select database .
> show databases;
+--------------------+
| Database |
+--------------------+
| information_schema |
| mysql |
| performance_schema |
| sys |
| text |
+--------------------+
5 rows in set (0.02 sec)
> use mysql;![]()
5. Change Password
/*update user set password=password("123456") where user="root";*/
alter user [email protected] identified by '123456';> mysql -uroot -pI found the wrong report , Don't panic , Here comes the key !!
First update the permissions
flush privileges;Then execute the password change command
alter user [email protected] identified by '123456';
6. sign out mysql
> quit;7. Close all consoles , Reopen a , restart mysql service , And login .
> net start mysql
> mysql -uroot -p
OK ! Successful connection
install Navicat 15 for MySQL
Navicat 15 for MySQL It's about MySQL Third party for database development MySQL Management tools , The software can be used for MySQL Database server version 3.21 Or above and MariaDB 5.1 Or more . Can connect at the same time MySQL and MariaDB database , And with Amazon RDS、Amazon Aurora、Oracle Cloud、Microsoft Azure、 Alibaba cloud 、 Tencent cloud is compatible with cloud databases such as Huawei cloud , Support seamless data migration 、 ordinary SQL edit 、 Intelligent database design 、 Advanced secure connection and other functions , For database management 、 Development and maintenance provides an intuitive and powerful graphical interface , It's management and development MySQL or MariaDB The ideal solution .
Navicat Connect MySQL
1. stay Navicat New China MySQL Connect

2. Default port 3306, Click the test connection button , Successful connection ! Finally, click OK

3. Double click the connection name , You can see all databases

边栏推荐
- Redisson high performance redis distributed lock source code analysis
- 开发一个禁止删除namespace的控制器
- Modbus protocol communication exception
- [target tracking] | data set summary
- Yingguang single chip microcomputer development specification pmc131 with AD chip to detect battery voltage single chip microcomputer sop8/14
- 好评率计算
- In Linux, MySQL sets the job task to start automatically
- Yingguang pmc131 SOP16 16pin eight bit MCU
- 应广单片机开发案例
- 把xshell連接服務器關掉,運行的jar包就自動停止的解决方案
猜你喜欢

From a professional background, I can't get into a small company for interview

Rk1126 platform project summary

1288_FreeRTOS中vTaskResume()接口以及中断安全版本接口实现分析

Mb10m-asemi rectifier bridge mb10m

【历史上的今天】7 月 2 日:BitTorrent 问世;商业系统 Linspire 被收购;索尼部署 PlayStation Now

Outsourcing for five years, abandoned

Keras' deep learning practice -- gender classification based on vgg19 model

Virtual lab basic experiment tutorial -7 Polarization (1)

透过华为军团看科技之变(六):智慧公路

In Linux, MySQL sets the job task to start automatically
随机推荐
em120.gige. h
Modbus protocol communication exception
Calculation of favorable comment rate
What should we pay attention to in the development process of Yingguang single chip microcomputer?
一日2篇Nature!中科大校友段镶锋团队纳米材料新成果,曾是贝尔比奖章第三位华人得主...
Wasserstein slim gain with clipping penalty (wsgain-cp) introduction and code implementation -- missing data filling based on generating countermeasure network
Design of the multi live architecture in different places of the king glory mall
MB10M-ASEMI整流桥MB10M
Longest non repeating subarray
Edgenext hit a mixed punch: a lightweight architecture integrating CNN and transformer
Yingguang MCU development case
977. Square of ordered array
Finally detailed explanation
【历史上的今天】7 月 2 日:BitTorrent 问世;商业系统 Linspire 被收购;索尼部署 PlayStation Now
辉芒微IO单片机FT60F11F-MRB
应广单片机开发流程需要注意哪些?
[golang | grpc] generate certificates using OpenSSL
Easyai notes - deep learning
Huimang micro IO MCU ft60f011a-rb
Laravel文档阅读笔记-Custom Authentication Login And Registration Using Laravel 8