当前位置:网站首页>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

边栏推荐
- [golang | grpc] generate certificates using OpenSSL
- Keras深度学习实战——基于VGG19模型实现性别分类
- 读写 XML/JSON/INI 和 UBJSON 等格式的数据文件的统一接口
- Ora-19838 -- restore control files to the standby database
- Explain kubernetes network model in detail
- 应广单片机开发案例
- Freemaker+poi realizes dynamic generation and parsing of Excel files
- 好评率计算
- Yingguang single chip microcomputer development specification pmc131 with AD chip to detect battery voltage single chip microcomputer sop8/14
- uva1169
猜你喜欢

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

MySQL -- basic operation of database

Finally detailed explanation
![[golang | grpc] generate certificates using OpenSSL](/img/a6/0c9c80cc24c5f8585051e00e73072f.png)
[golang | grpc] generate certificates using OpenSSL

Microsoft LDAP 配置页中输入有效的用户名及密码,microsoft ldap 配置页中输入有效的用户名

Easyai notes - machine learning

Mysql - opérations de base de la base de données

Virtual lab basic experiment tutorial -7 Polarization (2)

外包干了五年,废了...

Ora-19838 -- restore control files to the standby database
随机推荐
义隆EM78P153K DIP14单片机 MCU
把xshell連接服務器關掉,運行的jar包就自動停止的解决方案
Simple understanding of cardinality sorting
uva1169
原厂原装 应广单片机PMS134方案开发应用案例
Develop a controller that prohibits deleting namespaces
MySQL -- basic concept of database
Development and application case of pms134 scheme of Yingguang single chip microcomputer with original packaging
MySQL安装与配置
自定义一个loading指令
Longest non repeating subarray
ORA-19838 -- 恢复控制文件到备库
515. 在每个树行中找最大值
应广PMC131 SOP16 16pin八位单片机
My creation anniversary
PMS150C应广单片机开发案例
pytorch支持32位吗?
Yingguang single chip microcomputer development specification pmc131 with AD chip to detect battery voltage single chip microcomputer sop8/14
台风来袭,多景区暂时关闭,省文旅厅提醒注意安全!
Modbus协议通信异常