当前位置:网站首页>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
边栏推荐
- [thymeleaf] handle null values and use safe operators
- Sqlserver transaction and lock problem
- Mysql连接查询详解
- Tun equipment principle
- Have you really learned the operation of sequence table?
- thinkphp5+数据大屏展示效果
- Introduction to distributed transaction Seata
- UML learning_ Day2
- 博睿数据携手F5共同构建金融科技从代码到用户的全数据链DNA
- Detailed explanation of C language knowledge points -- data types and variables [1] - carry counting system
猜你喜欢
分享 20 个不容错过的 ES6 的技巧
Do (local scope), initializer, memory conflict, swift pointer, inout, unsafepointer, unsafebitcast, success
博睿数据携手F5共同构建金融科技从代码到用户的全数据链DNA
UML learning_ Day2
setcontext getcontext makecontext swapcontext
LeetCode151-颠倒字符串中的单词-字符串-模拟
Kubernetes详解(十一)——标签与标签选择器
Have you really learned the operation of sequence table?
Nuxt project: Global get process Env information
Introduction to Arduino for esp8266 serial port function
随机推荐
Fill in the next right node pointer II of each node [classical hierarchy traversal | regarded as linked list]
Leetcode167 - sum of two numbers II - double pointer - bisection - array - Search
LeetCode165-比较版本号-双指针-字符串
Tun equipment principle
Leetcode151 - invert words in string - String - simulation
Vscode Chinese plug-in doesn't work. Problem solving
LeetCode 练习——396. 旋转函数
How to design a good API interface?
PSYNC synchronization of redis source code analysis
牛客网数据库SQL实战详细剖析(26-30)
[proteus simulation] automatic range (range < 10V) switching digital voltmeter
Design of digital temperature monitoring and alarm system based on DS18B20 single chip microcomputer [LCD1602 display + Proteus simulation + C program + paper + key setting, etc.]
填充每个节点的下一个右侧节点指针 II [经典层次遍历 | 视为链表 ]
分享3个使用工具,在家剪辑5个作品挣了400多
Lotus DB design and Implementation - 1 Basic Concepts
Application of skiplist in leveldb
How to design a good API interface?
Redis cluster principle
大文件如何快速上传?
Have you really learned the operation of sequence table?