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

边栏推荐
- 科班出身,面试小公司都进不去
- Intelligent hydropower meter energy consumption monitoring cloud platform
- Experience Alibaba cloud character recognition OCR
- 原厂原装 应广单片机PMS134方案开发应用案例
- Redisson high performance redis distributed lock source code analysis
- 开发一个禁止删除namespace的控制器
- Songhan sn8p2511 sop8 single chip microcomputer can be used for burning, providing single chip microcomputer scheme development and single chip microcomputer decryption
- Yingguang pmc131 SOP16 16pin eight bit MCU
- Wasserstein slim gain with clipping penalty (wsgain-cp) introduction and code implementation -- missing data filling based on generating countermeasure network
- Yingguang single chip microcomputer development specification pmc131 with AD chip to detect battery voltage single chip microcomputer sop8/14
猜你喜欢
![[nonlinear control theory]8_ Comparison of three robust controllers](/img/a8/03ed363659a0a067c2f1934457c106.png)
[nonlinear control theory]8_ Comparison of three robust controllers
![[nonlinear control theory]7_ High gain and High Frequency](/img/e5/6c5ca4a89c97d9613cddccb281b35b.png)
[nonlinear control theory]7_ High gain and High Frequency

Laravel框架安装时遇到的坑

Linux中,mysql设置job任务自动启动

wait_for_gap -- 从主库归档备库恢复归档

Outsourcing for five years, abandoned

PFC232-SOP8/14/16应广一级可带烧录程序编带

The price is only 40 yuan. Pico development board of raspberry pie is added with WiFi module, and it is out of stock as soon as it comes into the market
![[target tracking] | data set summary](/img/2f/39a56d8cfb1638697735616b5e0412.png)
[target tracking] | data set summary

ASEMI整流桥UMB10F参数,UMB10F规格,UMB10F封装
随机推荐
MySQL --- 数据库的基本概念
Bluetooth technology | new working mode of wearable devices of the Internet of things, and Bluetooth ble helps the new working mode
Pms150c Yingguang MCU development case
蓝牙技术|物联网的可穿戴设备新工作模式,蓝牙BLE助力新工作模式
Taiwan Feiling fm8pb513b MCU provides MCU program development product design
POJ - 1458 common subsequence (longest common subsequence)
Development and application case of pms134 scheme of Yingguang single chip microcomputer with original packaging
切换变换的时候记得使用三元表达式
977. Square of ordered array
Wasserstein slim gain with clipping penalty (wsgain-cp) introduction and code implementation -- missing data filling based on generating countermeasure network
阿里云子账户 - 权限策略 - 授权给某个账户某个 OSS Bucket 的完全控制权限
Songhan sn8p2511 sop8 single chip microcomputer can be used for burning, providing single chip microcomputer scheme development and single chip microcomputer decryption
【曆史上的今天】7 月 2 日:BitTorrent 問世;商業系統 Linspire 被收購;索尼部署 PlayStation Now
ORA-19838 -- 恢复控制文件到备库
977.有序数组的平方
使用Zadig从0到1搭建持续交付平台
Linux中,mysql设置job任务自动启动
Huimang micro IO MCU ft60f11f-mrb
【Golang | gRPC】使用gRPC实现简单远程调用
应广单片机开发调试应注意的问题