当前位置:网站首页>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
边栏推荐
- L'information et l'entropie, tout ce que vous voulez savoir est ici.
- Alibaba cloud sends SMS verification code
- VS Code问题:长行的长度可通过 “editor.maxTokenizationLineLength“ 进行配置
- 2311. 小于等于 K 的最长二进制子序列
- It's too difficult to use. Long articles plus pictures and texts will only be written in short articles in the future
- Introduction Guide to stereo vision (5): dual camera calibration [no more collection, I charge ~]
- 一文详解图对比学习(GNN+CL)的一般流程和最新研究趋势
- c语言指针深入理解
- 植物大战僵尸Scratch
- Alibaba's ten-year test brings you into the world of APP testing
猜你喜欢
Node collaboration and publishing
Principle and performance analysis of lepton lossless compression
LeetCode 503. 下一个更大元素 II
Blogger article navigation (classified, real-time update, permanent top)
SMT32H7系列DMA和DMAMUX的一点理解
Global configuration tabbar
Deep understanding of C language pointer
Applet (subcontracting)
nodejs_ fs. writeFile
Wxss template syntax
随机推荐
Hosting environment API
Applet data attribute method
Applet network data request
OpenGL - Model Loading
Using request headers to develop multi terminal applications
一文详解图对比学习(GNN+CL)的一般流程和最新研究趋势
Talking about the difference between unittest and pytest
OpenGL - Lighting
SQL learning - case when then else
2309. 兼具大小写的最好英文字母
Wxml template syntax
Svgo v3.9.0+
Composition of applet code
Applet global style configuration window
[reading notes] Figure comparative learning gnn+cl
C # image difference comparison: image subtraction (pointer method, high speed)
2311. 小于等于 K 的最长二进制子序列
Kotlin introductory notes (IV) circular statements (simple explanation of while, for)
Unity skframework framework (XXIII), minimap small map tool
OpenGL - Coordinate Systems