当前位置:网站首页>MySQL download and installation environment settings
MySQL download and installation environment settings
2022-07-24 05:59:00 【Joey Boye o (* ^ ^ ^ *) o】
Preface
MySQL Is a relational database management system , Relational databases keep data in different tables , Instead of putting all the data in one big warehouse , This increases speed and flexibility .
MySQL What is used SQL Language is the most commonly used standardized language for accessing database .MySQL The software adopts a dual licensing policy , It is divided into community version and commercial version , Because of its small size 、 Fast 、 Low total cost of ownership , Especially open source , Generally, the development of small and medium-sized websites and large-scale websites all choose MySQL As website database .
One 、MySql Download the profile
MySql 5.7.37 Official download address
Optional 32 Bit or 64 Bit two

Decompress and copy to the system disk after downloading (C disc )
Environment settings

take MySql Of bin Copy the path to the system environment variable

install MySql

Run as administrator cmd Enter this path
Installation command
mysqld -install
Unload command
mysqld --remove mysql

Then set the startup MySql The configuration file is shown in the figure below 
Create a new text document and copy the following code into the text document
[mysqld]
basedir=C:\mysql-5.7.38-winx64\mysql-5.7.38-winx64 // You need to change it to your own MySql The path address of
datadir=C:\mysql-5.7.38-winx64\mysql-5.7.38-winx64\data // You need to change it to your own MySql The path address of
port=3306
After the change 、 You need to delete the comments in the text document ( Chinese and double slash )
Then the suffix and name of the text document are changed to my.ini After completion, proceed to the following steps
In the original cmd Window input command mysqld -initialize
mysqld --initialize

Enter and wait a little while after executing the order , Generate a data Folder , As shown in the figure below 
data There is a suffix named .err Final document , This file contains the first use MySql A temporary random password generated by is shown in the following figure 
start-up MySql
start-up MySql The order of
net start mysql
close MySql The order of
net stop mysql

Get into MySql The order of
mysql -u root -p
Pictured 
Will be in data Middle suffix is .err Random password copy in the end file , Input cmd Into MySql Here's the picture 
Enter the command to change the password in MySql As shown in the figure below Change the password to 123456
set password for [email protected]host=password('123456');
Show all database commands :show databases;
Select the database command use mydata; //mydata Represents the database name
Display table commands :show tables;
Direct query statement display table data command :select * from student; //student Indicates the name of the table
MySql Create database command :create database mydata;
As shown in the figure 
Qt Source code
边栏推荐
- Numpy cheatsheet
- 【USB Host】STM32H7 CubeMX移植带FreeRTOS的USB Host读取U盘,USBH_Process_OS卡死问题,有个值为0xA5A5A5A5
- 用指针访问二维数组
- MySql下载,及安装环境设置
- [activiti] gateway
- 对ArrayList<ArrayList<Double>>排序
- 第四章 决策树总结
- [deep learning] teach you to write "handwritten digit recognition neural network" hand in hand, without using any framework, pure numpy
- Qt新建工程简介
- 【树莓派4B】七、远程登录树莓派的方法总结XShell,PuTTY,vncServer,Xrdp
猜你喜欢
![[USB host] stm32h7 cubemx porting USB host with FreeRTOS to read USB disk, usbh_ Process_ The OS is stuck. There is a value of 0xa5a5a5](/img/be/b7723920f0e81e8699bb26dd1c0fe5.png)
[USB host] stm32h7 cubemx porting USB host with FreeRTOS to read USB disk, usbh_ Process_ The OS is stuck. There is a value of 0xa5a5a5
![[deep learning] handwritten neural network model preservation](/img/4a/27031f29598564cf585b3af20fe27b.png)
[deep learning] handwritten neural network model preservation

Learning rate optimization strategy

day2-WebSocket+排序

信号与系统:希尔伯特变换
![[activiti] group task](/img/f1/b99cae9e840d3a91d0d823655748fe.png)
[activiti] group task

"Statistical learning methods (2nd Edition)" Li Hang Chapter 15 singular value decomposition SVD mind map notes and after-school exercise answers (detailed steps) SVD matrix singular value Chapter 15

MySql下载,及安装环境设置
![[MYCAT] MYCAT configuration file](/img/53/63a633d3ae917e3754f9f7f5c6567f.png)
[MYCAT] MYCAT configuration file

labelme转voc代码中的一个小问题
随机推荐
《统计学习方法(第2版)》李航 第16章 主成分分析 PCA 思维导图笔记 及 课后习题答案(步骤详细)PCA 矩阵奇异值 第十六章
‘Results do not correspond to current coco set‘
Numpy cheatsheet
Qt char型转QString型 16进制与char型 转 16进制整型
【USB Host】STM32H7 CubeMX移植带FreeRTOS的USB Host读取U盘,USBH_Process_OS卡死问题,有个值为0xA5A5A5A5
[activiti] activiti system table description
Positional argument after keyword argument
[activiti] process example
【树莓派4B】七、远程登录树莓派的方法总结XShell,PuTTY,vncServer,Xrdp
主成分分析计算步骤
[MYCAT] MYCAT configuration file
【深度学习】手写神经网络模型保存
The problem that the user name and password are automatically filled in when Google / Firefox manages the background new account
Vscode multiline comments always expand automatically
day5-jvm
How to quickly connect CRM system and ERP system to realize the automatic flow of business processes
day-7 jvm完结
用指针访问一维数组
Deepsort summary
STM32 standard peripheral Library (Standard Library) official website download method, with 2021 latest standard firmware library download link