当前位置:网站首页>MySQL installation process (steps for successful installation)
MySQL installation process (steps for successful installation)
2022-04-23 15:09:00 【White horse is not a horse·】
To install this thing , It took me almost an afternoon , I hope you can install it foolishly , The problems in the middle help .
1. Install the package first
The data link : Version is mysql-5.7.24-winx64 Extraction code :fng5
2. Direct decompression installation
I decompressed to :F:\softfixed\jJavaSoft\mysql-5.7.24-winx64
The installation path should not have Chinese , There may be some mistakes .
2.1 Configure system variables
- New... In system variables MYSQL_HOME
1) Enter the address :F:\softfixed\jJavaSoft\mysql-5.7.24-winx64( This is the installation path above me ) - System variables path Add
1)%MYSQL_HOME%\bin - How to verify whether the addition is successful ?
1) Right click to start menu ( It's the lower left corner of the screen ), choice Command prompt ( Administrators ) , Open the black box , Knock in mysql , enter . If you are prompted Can’t connect toMySQL server on ‘localhost’ It proves that the addition is successful ; If you are prompted mysql Not an internal or external command , If it is not a runnable program or batch file, it indicates that the addition failed , Please recheck the steps and try again .
2.2 New configuration file
[mysqld]
basedir=F:/softfixed/jJavaSoft/mysql-5.7.24-winx64 // You need to change it to yourself mysql root directory
datadir=F:/softfixed/jJavaSoft/mysql-5.7.24-winx64\data // You need to change it to yourself mysql The directory data Under the document
port=3306
skip-grant-tables
notes : A backslash can be used in the path to indicate , Can avoid some mistakes
2.3 install mysql
- register MySQL service :mysqld -install
- Input again mysqld --initialize-insecure --user=mysql Initialization data file
- register MySQL service :mysqld -install
- start-up MySQL service :net start mysql
- Modify default account password :mysqladmin -u root password 1234
2.4 MySQL Login and exit
- Sign in :mysql -uroot -p1234
- sign out :exit perhaps quit
3. Where it's easy to make mistakes
- First, after the software decompression is completed , need Configure system variables , Use input mysql You can check whether it is configured , If the inspection is OK , Not yet. , It can be restarted
- Add the configuration file : Here are just five lines , The middle two lines need to be changed according to their own installation path , By default, all paths are forward slashes \, You can change , Use backslash / Replace , It may work wonders .
- Just install it step by step , This is my summary , I hope the next installation will not waste time .
版权声明
本文为[White horse is not a horse·]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/04/202204231407524635.html
边栏推荐
- Detailed comparison between asemi three-phase rectifier bridge and single-phase rectifier bridge
- How to design a good API interface?
- HJ31 单词倒排
- Detailed explanation of C language knowledge points -- data types and variables [1] - carry counting system
- OPPO数据湖统一存储技术实践
- Flink DataStream 类型系统 TypeInformation
- Redis主从同步
- Will golang share data with fragment append
- Ffmpeg installation error: NASM / yasm not found or too old Use --disable-x86asm for a clipped build
- My raspberry PI zero 2W tossing notes record some problems encountered and solutions
猜你喜欢
LeetCode153-寻找旋转排序数组中的最小值-数组-二分查找
What is the main purpose of PCIe X1 slot?
Design of digital temperature monitoring and alarm system based on DS18B20 single chip microcomputer [LCD1602 display + Proteus simulation + C program + paper + key setting, etc.]
LeetCode162-寻找峰值-二分-数组
Progress in the treatment of depression
我的 Raspberry Pi Zero 2W 折腾笔记,记录一些遇到的问题和解决办法
win10 任务栏通知区图标不见了
分布式事务Seata介绍
Do (local scope), initializer, memory conflict, swift pointer, inout, unsafepointer, unsafebitcast, success
On the day of entry, I cried (mushroom street was laid off and fought for seven months to win the offer)
随机推荐
让阿里P8都为之着迷的分布式核心原理解析到底讲了啥?看完我惊了
8.3 language model and data set
Llvm - generate addition
Async void caused the program to crash
My raspberry PI zero 2W tossing notes record some problems encountered and solutions
SQLSERVER事物与锁的问题
SQL中HAVING和WHERE的区别
8.5 concise implementation of cyclic neural network
Is asemi ultrafast recovery diode interchangeable with Schottky diode
setcontext getcontext makecontext swapcontext
What is the main purpose of PCIe X1 slot?
Sqlserver transaction and lock problem
Borui data and F5 jointly build the full data chain DNA of financial technology from code to user
Async void caused the program to crash
如何设计一个良好的API接口?
Provided by Chengdu control panel design_ It's detailed_ Introduction to the definition, compilation and quotation of single chip microcomputer program header file
How to upload large files quickly?
Leetcode exercise - 396 Rotation function
Thread synchronization, life cycle
Mds55-16-asemi rectifier module mds55-16