当前位置:网站首页>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
边栏推荐
- json.dumps()函数解析
- 《剑指Offer》 二维数组的查找 C语言版本
- Positional argument after keyword argument
- String methods and instances
- 在网络中添加SE通道注意力模块
- day3-jvm+排序总结
- Official account development custom menu and server configuration are enabled at the same time
- OSError: [WinError 127] 找不到指定的程序。Error loading “caffe2_detectron_ops.dll“ or one of its dependencies
- Raspberry pie is of great use. Use the campus network to build a campus local website
- Connect CRM system and effect advertising, help enterprises with precision marketing, and help enterprises with precision marketing
猜你喜欢

MySql与Qt连接、将数据输出到QT的窗口tableWidget详细过程。

Xshell远程访问工具

在网络中添加SE通道注意力模块

String methods and instances

Machine learning (zhouzhihua) Chapter 2 model selection and evaluation notes learning experience
![[MYCAT] MYCAT sub database and sub table](/img/a8/ebaedfa084754ef3c96f42ed78eb81.png)
[MYCAT] MYCAT sub database and sub table

tensorflow和pytorch框架的安装以及cuda踩坑记录

LSTM神经网络

学习率优化策略

谷歌/火狐浏览器管理后台新增账号时用户名密码自动填入的问题
随机推荐
【深度学习】手写神经网络模型保存
Answers and analysis of some after-school exercises in signals and systems (Wujing)
Official account development custom menu and server configuration are enabled at the same time
PDF文本合并
[raspberry pie 4B] VII. Summary of remote login methods for raspberry pie xshell, putty, vncserver, xrdp
[MYCAT] MYCAT sub database and sub table
Xshell远程访问工具
DeepSort 总结
字符串方法以及实例
"Statistical learning methods (2nd Edition)" Li Hang Chapter 13 introduction to unsupervised learning mind map notes
PDF Text merge
OSError: [WinError 127] 找不到指定的程序。Error loading “caffe2_detectron_ops.dll“ or one of its dependencies
systemctl + journalctl
JVM系统学习
STM32 standard peripheral Library (Standard Library) official website download method, with 2021 latest standard firmware library download link
单播、组播、广播、工具开发、QT Udp通讯协议开发简介及开发工具源码
Chapter III summary of linear model
解决ModularNotFoundError: No module named “cv2.aruco“
【数据库系统原理】第五章 代数和逻辑查询语言:包、扩展操作符、关系逻辑、关系代数与Datalog
Common features of ES6