当前位置:网站首页>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
边栏推荐
- Applet customization component
- c语言指针深入理解
- fs. Path module
- MySQL does not take effect in sorting string types
- Wechat applet obtains household area information
- C language - input array two-dimensional array a from the keyboard, and put 3 in a × 5. The elements in the third column of the matrix are moved to the left to the 0 column, and the element rows in ea
- Svg optimization by svgo
- 【阅读笔记】图对比学习 GNN+CL
- 植物大战僵尸Scratch
- [Yugong series] go teaching course 003-ide installation and basic use in July 2022
猜你喜欢
顶会论文看图对比学习(GNN+CL)研究趋势
Progressive JPEG pictures and related
Introduction Guide to stereo vision (6): level constraints and polar correction of fusiello method
mysql安装配置以及创建数据库和表
Creation and reference of applet
Rebuild my 3D world [open source] [serialization-3] [comparison between colmap and openmvg]
Lepton 无损压缩原理及性能分析
Editor use of VI and VIM
What is a firewall? Explanation of basic knowledge of firewall
OpenGL - Coordinate Systems
随机推荐
初识结构体
Rebuild my 3D world [open source] [serialization-1]
OpenGL - Coordinate Systems
Unity skframework framework (XXIII), minimap small map tool
Editor use of VI and VIM
STM32 simple multi-level menu (array table lookup method)
[how to disable El table]
Greendao reported an error in qigsaw, could not init daoconfig
Huber Loss
Nodejs modularization
Applet network data request
Wxss template syntax
Vs code problem: the length of long lines can be configured through "editor.maxtokenizationlinelength"
C # image difference comparison: image subtraction (pointer method, high speed)
Figure neural network + comparative learning, where to go next?
【el-table如何禁用】
【阅读笔记】图对比学习 GNN+CL
STM32简易多级菜单(数组查表法)
LeetCode 503. 下一个更大元素 II
Hosting environment API