当前位置:网站首页>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 mysql
2. Set to start mysql Skip permission verification when serving
> mysqld --console --skip-grant-tables --shared-memory
3. 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 -p
I 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
边栏推荐
- Use Zadig to build a continuous delivery platform from 0 to 1
- 毕业总结
- 透过华为军团看科技之变(六):智慧公路
- MySQL advanced - transaction and index
- wps插入图片后使图片完整显示
- [target tracking] |siamfc
- 一日2篇Nature!中科大校友段镶锋团队纳米材料新成果,曾是贝尔比奖章第三位华人得主...
- Clé de cartographie vimium
- Virtual lab basic experiment tutorial -7 Polarization (1)
- 辉芒微IO单片机FT60F11F-MRB
猜你喜欢
2 juillet: BitTorrent est sorti; L'acquisition du système commercial linspire; Sony Deployment PlayStation now
求求你们,别再刷 Star 了!这跟“爱国”没关系!
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
详解Kubernetes网络模型
wait_for_gap -- 从主库归档备库恢复归档
[nonlinear control theory]7_ High gain and High Frequency
我的创作纪念日
ASEMI整流桥UMB10F参数,UMB10F规格,UMB10F封装
Deep understanding of ThreadLocal
Editor编辑器扩展在Scene View添加按钮和logo
随机推荐
PMS150C应广单片机开发案例
Tips for self defined packaging of Yingguang SCM 003 burner
wait_ for_ Gap -- restore archive from primary archive to secondary Archive
Keras' deep learning practice -- gender classification based on vgg19 model
体验一下阿里云文字识别OCR
一个优秀程序员可抵五个普通程序员!
What is the experience of maintaining Wanxing open source vector database
Many scenic spots are temporarily closed due to the typhoon. The provincial culture and tourism department reminds you to pay attention to safety!
台湾飞凌FM8PB513B单片机提供单片机方案开发 产品设计
Virtual lab basic experiment tutorial -7 Polarization (1)
977. Square of ordered array
Songhan sn8p2511 sop8 single chip microcomputer can be used for burning, providing single chip microcomputer scheme development and single chip microcomputer decryption
阿里云子账户 - 权限策略 - 授权给某个账户某个 OSS Bucket 的完全控制权限
王者荣耀商城异地多活架构设计
Explain kubernetes network model in detail
一日2篇Nature!中科大校友段镶锋团队纳米材料新成果,曾是贝尔比奖章第三位华人得主...
义隆EM78P153K DIP14单片机 MCU
应广单片机PMS150/PMC150/PMS150C消费类单片机
567. Arrangement in string
MySQL进阶-事务及索引