当前位置:网站首页>MySql installation and configuration super detailed tutorial and simple method of building database and table
MySql installation and configuration super detailed tutorial and simple method of building database and table
2022-07-31 01:37:00 【Wanli Yangtze River Snow】
About the author: a new star creator in the C/C++ field, struggling for C++ and java
Personal homepage: Homepage
?? Series of columns: MySql made easy
?? Recommend a mock interview, brushing questionsArtifact??Register for free exams
??Foreword
Database is a must-have technology for a programmer, so I will share my
MySql
language learning path.This blog will share the installation of MySql from zero to one, configuring environment variables, building databases and tables, etc. The subsequent additions, deletions, changes, views, indexes, transactions, andJDBC
technologies will also be included in this column one after another.Update, interested friends can subscribe for free~
Article directory
- One, MySql installation and environment configuration
- Second, tools for building databases
- Three, the establishment of the database and the establishment of the table
- Conclusion
I. MySql installation and environment configuration
MySql download and installation
- Official website link, click to jump MySQL download
- Click the icon "Chinese" after the jump link
- Click on
GPL
Continue to follow the icon and click
clickdownload
- This style is after the download is complete, double click to start the download
- Be sure to remember the password you set when downloading, and click
next
for other things
Configuring environment variables
Check if you can log in to the database first
- Open the
bin
directory where MySql is located, entercmd
to enter the black window - Enter
mysql -u root -p
, then enter the password you set during installation, which is consistent with the picture, indicating success
Configuring environment variables
- Copy MySql's
bin
path - Find the environment variable of the system, enter the copied bin path after creating a new one and confirm it
Second, tools for building databases
- You can search and download
navicat12018_premium_cs_x64
in CSDN resources, or private letter bloggers can also - Test connection to database after download is complete
- If the connection fails, refer to the solution below
Three, the establishment of the database and the establishment of the table
Database creation
- First connect to MySql database, the interface is as follows:
- Click New Query and enter
create database if not exists database name
, the effect is as follows:
Table Creation
Create a new query again and write the code:
create table if not exists myTable(
name varchar(20) primary key,
age int not null
)
This is just a brief demonstration of the establishment of the table. Subsequent articles will introduce the knowledge points such as table constraints in detail
- The effect is as follows:
Conclusion
Such a solid tutorial, I haven't collected it to build a MySQL environment!If the Navicat tool is missing, you can privately message the blogger to get it. If you have any questions during the installation process, you can also ask me to answer them. Finally, it is not too much to ask for a three-link support~
Let me introduce myself first. The editor graduated from Jiaotong University in 2013. I worked in a small company and went to big factories such as Huawei and OPPO. I joined Ali in 2018, until now.I know that most junior and intermediate java engineers want to upgrade their skills, they often need to explore their own growth or sign up to study, but for training institutions, the tuition fee is nearly 10,000 yuan, which is really stressful.Self-learning that is not systematic is very inefficient and lengthy, and it is easy to hit the ceiling and the technology stops.Therefore, I collected a "full set of learning materials for java development" for everyone. The original intention is also very simple. I hope to help friends who want to learn by themselves but don't know where to start, and at the same time reduce everyone's burden.Add the business card below to get a full set of learning materials
边栏推荐
猜你喜欢
无线模块的参数介绍和选型要点
小黑leetcode之旅:117. 填充每个节点的下一个右侧节点指针 II
孩子的编程启蒙好伙伴,自己动手打造小世界,长毛象教育AI百变编程积木套件上手
typescript16-void
九州云获评云计算标准化优秀成员单位
Jiuzhou Cloud was selected into the "Trusted Cloud's Latest Evaluation System and the List of Enterprises Passing the Evaluation in 2022"
The Meta Metaverse Division lost 2.8 billion in the second quarter, still want to continue to bet?Metaverse development has yet to see a way out
剑指offer17---打印从1到最大的n位数
MySQL (6)
Basic Parameters of RF Devices 1
随机推荐
使用PageHelper实现分页查询(详细)
MySQL的存储过程
剑指offer17---打印从1到最大的n位数
《实战》基于情感词典的文本情感分析与LDA主题分析
Analyze the capabilities and scenarios of the cloud native message flow system Apache Pulsar
Solution: Parameter 0 of method ribbonServerList in com.alibaba.cloud.nacos.ribbon.NacosRibbonClientConfigu
使用docker安装mysql
"Real" emotions dictionary based on the text sentiment analysis and LDA theme analysis
Word/Excel 固定表格大小,填写内容时,表格不随单元格内容变化
Meta元宇宙部门第二季度亏损28亿 仍要继续押注?元宇宙发展尚未看到出路
小黑leetcode之旅:104. 二叉树的最大深度
软件测试要达到一个什么水平才能找到一份9K的工作?
关于Redis相关内容的基础学习
Can deep learning solve the parameters of a specific function?
黄东旭:TiDB的优势是什么?
The difference between 4G communication module CAT1 and CAT4
TiDB 在长银五八消费金融核心系统适配经验分享
VS warning LNK4099: No solution found for PDB
Basic Parameters of RF Devices 1
Responsive layout vs px/em/rem