当前位置:网站首页>Install MySQL tutorial
Install MySQL tutorial
2022-06-12 06:27:00 【Work hard working!】
1. download
1. Click the download link :
MySQL Download link 
2. The last two are Debug That is, the source code file , We select the corresponding version number from the above two according to our system digits . Then click start download .
2. install ( decompression )
1. After downloading, we get a compressed package , Unzip it , We can get MySQL5.7.24 Version of the software ontology ( It's just a folder ) We can cut it to the path you are familiar with .
3. To configure
1. Add environment variables
Right click this phone –> attribute –> Advanced system setup –> environment variable –> newly build 
2. Locate and double-click in the system variable Path

3. Then we verify that the addition was successful ? The following message appears to indicate that the addition was successful , If you are prompted mysql Not an internal or external command , Nor are they runnable programs or batch files , It means that the addition failed , Please recheck the steps and try again .55
This application error appears here , It's missing vcredist
So we need to download this file Vcredist download 
After we download and install , We restart the command line , Input mysql, The following line represents success .
4. New configuration file
1. Create a new text file , The contents are as follows :
[mysql]
default-character-set=utf8
[mysqld]
character-set-server=utf8
default-storage-engine=INNODB
sql_mode=STRICT_TRANS_TABLES,NO_ZERO_IN_DATE,NO_ZERO_DATE,ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION
2. Then save the above text file as , And select all files in the save type , File name my.ini, The existing path is MySQL Root directory ( For example, mine is E:\soft\MySQL\mysql-5.7.24-winx64)
notes : The text file code means that the default code set of the configuration database is UTF-8 And the default storage engine is INNODB
5. initialization MySQL
1. Enter in black window mysqld --initialize-insecure, enter , Wait a while. If no error message appears ( Here's the picture ) Then prove data There is no problem with directory initialization , Check again at this time MySQL There are already data Directory generation .
tips: If the above error occurs , Due to insufficient permissions , Go to C:/Windows\System32 Run as administrator under cmd.exe
2. And then we're typing mysqld --initialize-insecure The representative has no problem , Then we go to check MySQL Is there any generation under the directory data Catalog .
It does generate data Catalog .
6. register MySQL service
1. Enter... On the command line mysqld -install, enter .
Now your computer has been installed MySQL Yes
7. start-up MySQL service
Enter... On the command line net start mysql, enter .
tips:net start mysql // start-up mysql service net stop mysql // stop it mysql service 
8. Modify default account password
Enter... On the command line mysqladmin -u root password 123456, there 123456 Default administrator ( namely root Account ) Password , You can change it to your favorite password mysqladmin -u root password 1234
9. Sign in MySQL
WIN+R, Input cmd Open Command Prompt
Enter... On the command line ,mysql -uroot -p123456 , enter , The following figure appears and the lower left corner is mysql>, Login succeeded 
Here you can operate your MySQL 了 .
sign out mysql:
tips:exit perhaps quit
Login parameters :mysql -u user name -p password -h To connect the mysql Server's ip Address ( Default 127.0.0.1) -P Port number ( Default 3306)
10. download MySQL
1. First close MySQL , Enter... On the command line net stop mysql, enter .
2. In the input mysqld -remove mysql
3. Finally delete MySQL Directory file and related environment configuration
On behalf of MySQL Uninstall completed .
边栏推荐
- 分段贝塞尔曲线
- OverFeat: Integrated Recognition, Localization and Detection using Convolutional Networks
- The first principle of thinking method
- QT--实现TCP通信
- MLP sensor
- Cv2.fillpoly coco annotator segment coordinate conversion to mask image
- Automatic modeling of Interchange
- Leetcode personal question solution (Sword finger offer3-5) 3 Duplicate number in array, 4 Find in 2D array, 5 Replace spaces
- torch在高版本训练的模型在低版本中使用报错
- Excel VBA opens a file that begins with the specified character
猜你喜欢

摄像头拍摄运动物体,产生运动模糊/拖影的原因分析

In unity3d, billboard effect can be realized towards another target

Tips for using the potplayer video player

Overview of camera image quality

Multithreading mode (I) -- protective pause and join source code

上传文件(post表单提交form-data)

Codeforces Round #793 (Div. 2) A B C

SQL injection read / write file

MNIST handwritten data recognition by RNN

MNIST handwritten data recognition by CNN
随机推荐
Video summary with long short term memory
Sensor bringup 中的一些问题总结
Word2Vec
English语法_副词_有无ly,意义不同
platform driver
张驰课堂:2022年CAQ中质协六西格玛考试时间通知
SQL注入原理即sqli-labs搭建,sql注入简单实战
Nocturnal simulator ADB view log
Get the size of the picture
Process when solving vagrant up_ builder. rb:43:in `join‘: incompatible character encodings: GBK and UTF-8
Whether the modification of basic type and reference type is valid
Multithreading (4) -- no lock (3) -- longadder source code
Unity implements smooth interpolation
C # converts the hexadecimal code form of text to text (ASCII)
Leetcode sword finger offer (Second Edition) complete version of personal questions
OverFeat: Integrated Recognition, Localization and Detection using Convolutional Networks
LeetCode-剑指Offer(第二版)个人题解完整版
Apache poi 导入导出Excel文件
[reinstall system] 01 system startup USB flash disk production
Unity C script implements AES encryption and decryption