当前位置:网站首页>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 503. Next bigger Element II
- Kotlin introductory notes (V) classes and objects, inheritance, constructors
- Kotlin introductory notes (IV) circular statements (simple explanation of while, for)
- Information and entropy, all you want to know is here
- Kotlin introductory notes (III) kotlin program logic control (if, when)
- [ctfhub] Title cookie:hello guest only admin can get flag. (cookie spoofing, authentication, forgery)
- 2310. The number of bits is the sum of integers of K
- Transfer learning and domain adaptation
- C # draw Bezier curve with control points for lattice images and vector graphics
- Understanding of smt32h7 series DMA and DMAMUX
猜你喜欢
基于宽表的数据建模应用
Using request headers to develop multi terminal applications
Applet global style configuration window
Kotlin introductory notes (II) a brief introduction to kotlin functions
OpenGL - Lighting
OpenGL - Model Loading
Deep understanding of C language pointer
Progressive JPEG pictures and related
[team PK competition] the task of this week has been opened | question answering challenge to consolidate the knowledge of commodity details
Applet network data request
随机推荐
Kotlin introductory notes (I) kotlin variables and non variables
【愚公系列】2022年7月 Go教学课程 003-IDE的安装和基本使用
Multiple solutions to one problem, asp Net core application startup initialization n schemes [Part 1]
Editor use of VI and VIM
fs. Path module
An article takes you into the world of cookies, sessions, and tokens
Multiple solutions to one problem, asp Net core application startup initialization n schemes [Part 1]
【对象数组的排序】
High performance spark_ Transformation performance
2310. The number of bits is the sum of integers of K
Lepton 无损压缩原理及性能分析
Progressive JPEG pictures and related
LeetCode 503. 下一个更大元素 II
Introduction Guide to stereo vision (5): dual camera calibration [no more collection, I charge ~]
Android privacy sandbox developer preview 3: privacy, security and personalized experience
Huber Loss
Go 语言使用 MySQL 的常见故障分析和应对方法
Creation and reference of applet
基于STM32单片机的测温仪(带人脸检测)
SQL learning - case when then else