当前位置:网站首页>MySQL installation configuration and creation of databases and tables
MySQL installation configuration and creation of databases and tables
2022-07-05 09:32:00 【This card】
mysql Installation configuration
Catalog
1、 install
In view of my own environment window11, So what is shown here is win Installation of version
Installation address :https://dev.mysql.com/downloads/mysql/
Here I choose the last Windows (x86, 64-bit), ZIP Archive, Click the corresponding download
After entering the interface , Don't worry about these registration contents , Click on no thanks,just start my download Can
stay c disc ( You can also choose by yourself ) Create a mysql Folder , Then extract the downloaded compressed package into it
2、 To configure
After the above steps, we will configure
First create a my.ini file , Enter the following ( Be careful : among basedir It must be your own installation directory !!!)
[client]
# Set up mysql Client default character set
default-character-set=utf8
[mysqld]
# Set up 3306 port
port = 3306
# Set up mysql Installation directory
basedir=C:\\mysql\\mysql-8.0.29-winx64
# Set up mysql Database data storage directory ,MySQL 8+ The following configuration is not required , The system can be generated by itself , Otherwise, it is possible to report an error
# datadir=C:\\mysql\\mysql-8.0.29-winx64
# Maximum connections allowed
max_connections=20
# The character set used by the server defaults to 8 Bit coded latin1 Character set
character-set-server=utf8
# The default storage engine that will be used when creating a new table
default-storage-engine=INNODB
Then configure it in the system environment ( As in the last line )
3、 start-up
open cmd, Toggle directory ( Own directory !!)
cd C:\mysql\mysql-8.0.29-winx64\bin
Initialize database
mysqld --initialize --console
After execution, the following initial password will be displayed
...
2022-04-20T02:35:05.464644Z 5 [Note] [MY-010454] [Server] A temporary password is generated for [email protected]: APWCY5ws&hjQ
...
Here, for example. APWCY5ws&hjQ It's the initial password
4、Navicat install
For better use mysql, It is recommended to install another graphical interface navicat To operate mysql
Install Links https://www.navicat.com/en/download/navicat-for-mysql
What I have installed here is win64 Trial version of bit
Download and run exe file
Click on next
Click on accept
Select the installation directory
Whether to install shortcuts
Click Install to wait for installation
installation is complete
5、 Build a database
Here I show a database establishment process , It is mainly to establish the per capita wage level in all parts of China
Start by opening navicat for sql Link
Choose to write a connection name, Input password, Then the link is successful
Right click to create a new database
Name the new database , And standardize the database as utf-8 code
Double click to open this database , Create a new table
Create a table structure , Enter the corresponding field
After saving, you can edit the data
边栏推荐
- LeetCode 556. Next bigger element III
- notepad++
- 微信小程序获取住户地区信息
- [team PK competition] the task of this week has been opened | question answering challenge to consolidate the knowledge of commodity details
- Can't find the activitymainbinding class? The pit I stepped on when I just learned databinding
- LeetCode 556. 下一个更大元素 III
- 【阅读笔记】图对比学习 GNN+CL
- Unity skframework framework (XXIII), minimap small map tool
- 一题多解,ASP.NET Core应用启动初始化的N种方案[上篇]
- [ctfhub] Title cookie:hello guest only admin can get flag. (cookie spoofing, authentication, forgery)
猜你喜欢
SQL learning - case when then else
Applet (use of NPM package)
基于宽表的数据建模应用
VS Code问题:长行的长度可通过 “editor.maxTokenizationLineLength“ 进行配置
Information and entropy, all you want to know is here
LeetCode 31. 下一个排列
项目实战 | Excel导出功能
Kotlin introductory notes (VII) data class and singleton class
LeetCode 556. 下一个更大元素 III
Global configuration tabbar
随机推荐
fs. Path module
LeetCode 496. 下一个更大元素 I
Android 隐私沙盒开发者预览版 3: 隐私安全和个性化体验全都要
基于STM32单片机的测温仪(带人脸检测)
Driver's license physical examination hospital (114-2 hang up the corresponding hospital driver physical examination)
利用请求头开发多端应用
LeetCode 503. Next bigger Element II
Blogger article navigation (classified, real-time update, permanent top)
SMT32H7系列DMA和DMAMUX的一点理解
[reading notes] Figure comparative learning gnn+cl
项目实战 | Excel导出功能
Applet data attribute method
2311. Longest binary subsequence less than or equal to K
【el-table如何禁用】
Unity SKFramework框架(二十三)、MiniMap 小地图工具
C # compare the differences between the two images
Svg optimization by svgo
Using request headers to develop multi terminal applications
[team PK competition] the task of this week has been opened | question answering challenge to consolidate the knowledge of commodity details
OpenGL - Lighting