当前位置:网站首页>MySQL installation tutorial
MySQL installation tutorial
2022-06-25 02:58:00 【Bugxiu_ fu】
Today, I'd like to share some mysql Database installation , I hope that helps ( This database is generally used for small 、 Chinese Enterprises )
1、 Why do we use MySql?
1、mysql Performance is remarkable , Stable service , There are very few abnormal downtime .
2、mysql Open source and no copyright restrictions , Autonomy and low cost of use .
3、mysql Has a long history , The community and users are very active , Have a problem , You can ask for help .
4、mysql The software is small , Easy to install and use , And easy to maintain , Low installation and maintenance costs .
5、mysql Brand word of mouth effect , Make the enterprise use it directly without any consideration .
6、mysql Support multiple operating systems , Offer a variety of API Interface , Support multiple development languages .
2、MySql Installation steps
1、 Official website :MySQL :: MySQL Downloads
https://www.mysql.com/cn/downloads/
2、 After downloading and decompressing , Open the command prompt as an administrator and execute the following code :
Switch to MySql Of bin Catalog cd E:\mysql-5.7.23-winx64\mysql-5.7.23-winx64\bin
3. newly build my.ini Put it in E:\mysql-5.7.23-winx64\mysql-5.7.23-winx64\ Under the folder
The contents of the document are as follows
[mysql] # Set up mysql Client default character set default-character-set=utf8 [mysqld] # Set up 3306 port port = 3306 # Set up mysql Installation directory basedir=E:\mysql-5.7.23-winx64\mysql-5.7.23-winx64 # Set up mysql Database data storage directory datadir=E:\mysql-5.7.23-winx64\mysql-5.7.23-winx64\\data # Maximum connections allowed max_connections=200 # The character set used by the server defaults to 8 Bit coded latin1 Character set character-set-server=utf8 # The default storage engine that will be used when creating a new table default-storage-engine=INNODB
4、 install mysql, Execute code mysqld -install
Xiaobian is here because I have already installed , So the prompt here already exists
5、 initialization , Execute code :mysqld --initialize-insecure --user=mysql According to just my.ini File to initialize , Then it will produce a data Folder
After successful initialization, see the following figure
6. start-up MySql service , Execute code net start mysql
7、 Set the password 、mysqladmin -u root -p password New password
8、 Connect to database ,mysql -uroot -p
9、 Verify that you are logged into the database ,show tables;
边栏推荐
- Unity archive system - file in JSON format
- Migrate Oracle database from windows system to Linux Oracle RAC cluster environment (1) -- migrate data to node 1
- ERROR日志格式与注意点
- How to uninstall CUDA
- Unity存档系统——Json格式的文件
- Once beego failed to find bee after passing the go get command Exe's pit
- 把 Oracle 数据库从 Windows 系统迁移到 Linux Oracle Rac 集群环境(3)—— 把数据库设置为归档模式
- 怎么开户打新债 开户是安全的吗
- How transformers Roberta adds tokens
- 爱
猜你喜欢
AI服装生成,帮你完成服装设计的最后一步
Overview of AOSP ~ WiFi architecture
记一次beego通过go get命令后找不到bee.exe的坑
yarn : 无法加载文件 C:\Users\xxx\AppData\Roaming\npm\yarn.ps1,因为在此系统上禁止运行脚本
[STL source code analysis] configurator (to be supplemented)
Are programmers from Huawei, Alibaba and other large manufacturers really easy to find?
Xiaomi routing R4A Gigabit version installation feed+openwrt tutorial (the full script does not need to be hard modified)
Computer wechat user picture decoded into picture in DAT format (TK version)
保险也能拼购?个人可以凑够人数组团购买医疗保险的4大风险
Before the age of 36, Amazon transgender hackers were sentenced to 20 years' imprisonment for stealing data from more than 100million people!
随机推荐
Leetcode 210: curriculum II (topological sorting)
商城项目 pc----商品详情页
ERROR日志格式与注意点
[i.mx6ul] u-boot migration (VI) network driver modification lan8720a
Jetson Nano 从入门到实战(案例:Opencv配置、人脸检测、二维码检测)
How to open an account to open a new bond is it safe to open an account
Lihongyi, machine learning 6 Convolutional neural network
LeetCode 210:课程表 II (拓扑排序)
Mall project pc--- product details page
@PostConstruct
How to click DOM to automatically locate the corresponding code line in vscode
Egg 服务搭建微信公众号的基础服务
使用ShaderGraph制作边缘融合粒子Shader的启示
请问polarDB数据库可以通过mysql进行数据源连接吗
Migrate Oracle database from windows system to Linux Oracle RAC cluster environment (2) -- convert database to cluster mode
PE file infrastructure sorting
npm包发布详细教程
yarn : 无法加载文件 C:\Users\xxx\AppData\Roaming\npm\yarn.ps1,因为在此系统上禁止运行脚本
left join on和 join on的区别
Copilot免费时代结束!学生党和热门开源项目维护者可白嫖