当前位置:网站首页>MySQL installation and configuration - detailed tutorial
MySQL installation and configuration - detailed tutorial
2022-04-23 07:20:00 【sunshinecxm_ BJTU】
original text :https://www.cnblogs.com/winton-nfs/p/11524007.html
install-free Mysql
MySQL Guan is a relational database management system , What is used SQL Language is the most commonly used for accessing databases
Standardized language , It is characterized by small volume 、 Fast 、 Low total cost of ownership , Especially open source , stay Web
Application aspect MySQL It's the best RDBMS(Relational Database Management System: Relational data
Library management system ) One of the application software .
In this post , I mainly use Mysql For example, install free version , Help you with installation and configuration mysql Steps for .
One : Download installation package :
① After entering the official website , Click on "Dowload", And then the page goes down
② The next page is like this , The link in the red box is mysql Community Edition , It's free. mysql edition , Then we click the link in this box :
③ Next, go to this page , ad locum , We just download the community version of Server That's all right. :
④ Download the installation free version (windows Except for other systems )
such , The installation package will be downloaded !
Be careful , The installation directory should be in the specified location ,, secondly , Avoid Chinese... In absolute path , It is recommended to choose English as the naming condition !!!!( My for reference )
Two :Mysql Configuration of
Open the command line as Administrator ( As shown in the figure below )
① Go down to mysql Of bin Under the table of contents :
② install mysql Service for :mysqld --install
③ initialization mysql, ad locum , Initialization produces a random password , As shown in the picture box below , Remember this password , We'll use that later (mysqld --initialize --console)
④ Turn on mysql Service for (net start mysql)
⑤ validate logon ,mysql Is the installation successful !( Pay attention to the random password generated above , Do not include spaces in front of the preceding symbols , Otherwise, it will fail to log in ), If it's the same as the figure below , It means your mysql Installed successfully ! Be careful ,, Be sure to start the service first , Otherwise, the login will fail , An access denied prompt appears !!!
Change Password :
The random password generated due to initialization is too complex ,, It's not convenient for us to log in mysql, therefore , We should change a password that we can remember !!
Log in again to verify the new password :
Set the global variables of the system :
For the convenience of login operation mysql, Here we set a global variable :
① Click on " My computer "–>“ attribute ”–>’‘ Advanced system setup ’’–>’‘ environment variable ’’, Next, as shown in the figure below
② Put the new mysql Variable added to Path In the path variable , Click ok , That is to finish :
Once the configuration is complete , Whenever we want to use the command line mysql when , It only needs win+R,–> Input "cmd" Open the command line , Then enter login sql Sentence can be used .
③ stay mysql Create one in the directory ini or cnf The configuration file , What I created here is ini The configuration file , The code in it is mysql Some basic configuration of ( It's not necessary )
That's it , An installation free version of Mysql Just install and configure , beginner , Try not to use mysql The compiler ,, It is recommended to practice with the command line until you are proficient ~
Reference resources :
① Installation services :mysqld --install
② initialization : mysqld --initialize --console
③ Opening service :net start mysql
④ Close the service :net stop mysql
⑤ Sign in mysql:mysql -u root -p
Enter PassWord:( password )
⑥ Change Password :alter user ‘root’@‘localhost’ identified by ‘root’;(by Then there's the code )
⑦ Mark deletion mysql service :sc delete mysql
版权声明
本文为[sunshinecxm_ BJTU]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/04/202204230610530270.html
边栏推荐
- 一款png生成webp,gif, apng,同时支持webp,gif, apng转化的工具iSparta
- What did you do during the internship
- Machine learning II: logistic regression classification based on Iris data set
- Kotlin征途之data class [数据类]
- 【点云系列】 A Rotation-Invariant Framework for Deep Point Cloud Analysis
- torch. mm() torch. sparse. mm() torch. bmm() torch. Mul () torch The difference between matmul()
- Recyclerview 批量更新View:notifyItemRangeInserted、notifyItemRangeRemoved、notifyItemRangeChanged
- Cause: dx. jar is missing
- 红外传感器控制开关
- [2021 book recommendation] red hat rhcsa 8 cert Guide: ex200
猜你喜欢
C language, a number guessing game
ViewPager2实现画廊效果执行notifyDataSetChanged后PageTransformer显示异常 界面变形问题
Viewpager2 realizes Gallery effect. After notifydatasetchanged, pagetransformer displays abnormal interface deformation
Personal blog website construction
ArcGIS license server administrator cannot start the workaround
[2021 book recommendation] practical node red programming
红外传感器控制开关
ThreadLocal, just look at me!
【点云系列】 A Rotation-Invariant Framework for Deep Point Cloud Analysis
【点云系列】SG-GAN: Adversarial Self-Attention GCN for Point Cloud Topological Parts Generation
随机推荐
torch.mm() torch.sparse.mm() torch.bmm() torch.mul() torch.matmul()的区别
PyTorch最佳实践和代码编写风格指南
【动态规划】不同的二叉搜索树
5种方法获取Torch网络模型参数量计算量等信息
【動態規劃】不同路徑2
Keras如何保存、加载Keras模型
【2021年新书推荐】Professional Azure SQL Managed Database Administration
Compression and acceleration technology of deep learning model (I): parameter pruning
【2021年新书推荐】Learn WinUI 3.0
【2021年新书推荐】Enterprise Application Development with C# 9 and .NET 5
AVD Pixel_ 2_ API_ 24 is already running. If that is not the case, delete the files at C:\Users\admi
Binder mechanism principle
【动态规划】杨辉三角
GEE配置本地开发环境
Record WebView shows another empty pit
Bottomsheetdialogfragment conflicts with listview recyclerview Scrollview sliding
Component based learning (3) path and group annotations in arouter
Component based learning (1) idea and Implementation
Android exposed components - ignored component security
如何对多维矩阵进行标准化(基于numpy)