当前位置:网站首页>MySQL development environment
MySQL development environment
2022-06-27 03:33:00 【Luoluo hushengwei】
hello, Family , Today I will teach you how to use the command prompt to install MySql, ha-ha , Follow my steps step by step , It's easy , come on. !
Catalog
One . install mysql5.7.23 Decompression version
2. Configure environment variables :
9.Enter password: Old password
4. Delete registry information
5. Delete mysql Installation directory
3、 ... and : solve mysql Unable to connect remotely :
One . install mysql5.7.23 Decompression version
1. First download it on the official website , Then we will get a compressed package , Then we need to decompress all the compressed packages , Then it will be like this

Because my folder here is installed in E Discoid , So just take me as an example .
2. Configure environment variables :
MYSQL_HOME E:\MySql\mysql-5.7.23-winx64
Turn on the settings first

Then turn on the system

Then click Advanced system settings on the right

You will enter the above interface , Then click Advanced , Select the environment variables option below

notes : It is best to configure environment variables in system variables
3. edit path
%MYSQL_HOME%\bin
4. newly build my.ini
newly build my.ini , Put it in MySql Under the folder
[mysqld]
port = 3306
basedir=E:\MySql\mysql-5.7.23-winx64
datadir=E:\MySql\mysql-5.7.23-winx64/data ( If there is... In the file directory data file , Delete before that )
max_connections=200
character-set-server=utf8
default-storage-engine=INNODB
sql_mode=NO_ENGINE_SUBSTITUTION,STRICT_TRANS_TABLES
[mysql]
default-character-set=utf8

explain :
sql_mode
NO_ENGINE_SUBSTITUTION:mysql stay create table You can specify engine Clause
STRICT_TRANS_TABLES: For a single insert operation , Whether inserting a single row or multiple rows , As long as the inserted data is incompatible with the field type , be insert Operation failed and rolled back
And mysql The closest thing is mariadb
Then we try to prevent installation errors , Use the registration edit table in our system , Then go to press Export , Then we will generate a suffix named .reg The file of , If then MySql Accidentally installed it askew , Or failed to install , You can delete this directory , You can save the useful data and cut it , Then reopen our registration edit table , Then re import the file we exported , Then reinitialize
good , Now let's start using the command prompt , To open the first cmd command , Then right-click the command prompt , Choose to run as Administrator
Need to go to bin Catalog :
5. install
mysqld -install

6. initialization
mysqld --initialize-insecure --user=mysql
According to just my.ini File to initialize , Then it will produce a data Folder
7. start-up
net start mysql

8. Set the password
mysqladmin -u root -p password New password

9.Enter password: Old password
Directly enter , Because initialization directly puts mysql The password for is set to null

10. Connect
mysql -u root -p

11. test
Display database show databases;
Display table show tables;
Two 、 uninstall mysql
1 Out of Service
net stop mysql
2. Delete service
sc delete mysql But the service is only disabled , Services still exist
3. Remove the service
mysqld remove Need to go to bin Catalog , Could not find in the service mysql Yes
4. Delete registry information
- HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Services\Eventlog\Application\MySQL
- HKEY_LOCAL_MACHINE\SYSTEM\ControlSet002\Services\Eventlog\Application\MySQL
- HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Eventlog\Application\MySQL
5. Delete mysql Installation directory
Open the registry
regedit
Open the service
services.msc
Be careful 1: Protected shutdown , In particular, self-protection should be turned off , Otherwise, you can't uninstall
Be careful 2: Permission problems
3、 ... and : solve mysql Unable to connect remotely :
1. stay mysql Enter... On the server mysql The command line
2. Execute the following statement : ( Note that the password needs to be modified according to your own configuration )
mysql> grant all privileges on *.* to [email protected]'%' identified by '123456';
mysql> flush privileges;
That's all for today's knowledge ~ ha-ha , I'll see you next time
Remember to smile today .
边栏推荐
- 元透实盘周记20220627
- 2019LXMERT:Learning Cross-Modality Encoder Representations from Transformers
- Sword finger offer 𞓜: stack and queue (simple)
- Paddlepaddle 20 implementation and use of exponentialmovingaverage (EMA) (support static graph and dynamic graph)
- 超级详细,2 万字详解,吃透 ES!
- Geometric distribution (a discrete distribution)
- Pat grade a 1025 pat ranking
- Further exploration of handler (Part 2) (the most complete analysis of the core principles of handler)
- Qingscan use
- Agile development - self use
猜你喜欢

Pat class a 1024 palindromic number

GAMES101作业7提高-微表面材质的实现过程

静态时序分析-OCV和time derate

Pat grade a 1020 tree Traversals

resnet152 辣椒病虫害图像识别1.0

Flink learning 4:flink technology stack

2020:MUTANT: A Training Paradigm for Out-of-Distribution Generalizationin Visual Question Answering

超級詳細,2 萬字詳解,吃透 ES!

pytorch_ grad_ Cam -- visual Library of class activation mapping (CAM) under pytorch

Learn from Taiji Maker - mqtt Chapter 2 (I) QoS service quality level
随机推荐
Servlet and JSP final review examination site sorting 42 questions and 42 answers
投资理财产品的钱有保障吗?会不会没有了?
TP5 Spreadsheet Excle 表格导出
MySql的开发环境
Pat grade a 1019 general palindromic number
手撸promise【二、Promise源码】【代码详细注释/测试案例完整】
2020:MUTANT: A Training Paradigm for Out-of-Distribution Generalizationin Visual Question Answering
CVPR2021:Separating Skills and Concepts for Novel Visual Question Answering将技巧与概念分开的新视觉问答
超級詳細,2 萬字詳解,吃透 ES!
元透实盘周记20220627
Further exploration of handler (I) (the most complete analysis of the core principle of handler)
Easy to use plug-ins in idea
超级详细,2 万字详解,吃透 ES!
PAT甲级 1019 General Palindromic Number
SAI钢笔工具如何使用,入门篇
Getting started with Scala_ Immutable list and variable list
PAT甲级 1025 PAT Ranking
ESP8266
Human soberness: bottom logic and top cognition
Quicksand painting simulator source code

