当前位置:网站首页>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
边栏推荐
- MySql下载,及安装环境设置
- synergy局域网实现多主机共享键鼠(amd、arm)
- 用指针访问一维数组
- Answers and analysis of some after-school exercises in signals and systems (Wujing)
- ‘Results do not correspond to current coco set‘
- opencv读取avi视频报错:number < max_number in function ‘icvExtractPattern
- 传统的k-means实现
- 测试数据增强后标签和数据集是否对应
- Problems in SSM project configuration, various dependencies, etc. (for personal use)
- day6-jvm
猜你喜欢

信号与系统:希尔伯特变换

Machine learning (Zhou Zhihua) Chapter 4 notes on learning experience of decision tree

第三章 线性模型总结
![[deep learning] handwritten neural network model preservation](/img/4a/27031f29598564cf585b3af20fe27b.png)
[deep learning] handwritten neural network model preservation

Connect CRM system and effect advertising, help enterprises with precision marketing, and help enterprises with precision marketing

es6常用特性
![[MYCAT] MYCAT sets up read-write separation](/img/7e/bc3488d3ca77104af101d45d723967.png)
[MYCAT] MYCAT sets up read-write separation

day3-jvm+排序总结

jestson安装ibus输入法

《统计学习方法(第2版)》李航 第十三章 无监督学习概论 思维导图笔记
随机推荐
JVM系统学习
Signals and systems: Hilbert transform
学习率优化策略
STM32 DSP library MDK vc5\vc6 compilation error: 256, (const float64_t *) twiddlecoeff64_ 256, armBitRevIndexTableF64_ 256,
【数据库系统原理】第五章 代数和逻辑查询语言:包、扩展操作符、关系逻辑、关系代数与Datalog
MySql下载,及安装环境设置
On the concepts of "input channel" and "output channel" in convolutional neural networks
How to quickly connect CRM system and ERP system to realize the automatic flow of business processes
Openwrt quick configuration Samba
JSON. Dumps() function parsing
[activiti] Introduction to activiti
Numpy array broadcast rule memory method array broadcast broadcast principle broadcast mechanism
jestson安装ibus输入法
js星星打分效果
【数据库系统原理】第四章 高级数据库模型:统一建模语言UML、对象定义语言ODL
数组常用方法
[activiti] group task
How to solve the problem of large distribution gap between training set and test set
[MYCAT] MYCAT installation
GCC 中__attribute__((constructor)和__attribute__(((destructor))的注意事项。