当前位置:网站首页>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
MySqllanguage 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, andJDBCtechnologies 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
nextfor other things
Configuring environment variables
Check if you can log in to the database first
- Open the
bindirectory where MySql is located, entercmdto 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
binpath - 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_x64in 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
li>
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
边栏推荐
- MySQL的分页你还在使劲的limit?
- 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
- 观察者(observer)模式(一)
- Image processing tool design
- 有没有可以做副业可以日入300元方法?
- .NET 跨平台应用开发动手教程 |用 Uno Platform 构建一个 Kanban-style Todo App
- 蓝牙mesh系统开发二 mesh节点开发
- TiCDC 架构和数据同步链路解析
- 计算S=a+aa+…+aa…a
- I have been working in software testing for 3 years, how did I go from just getting started to automated testing?
猜你喜欢
随机推荐
Jetpack Compose学习(8)——State及remeber
The level of ShardingSphere depots in actual combat (4)
蛮力法/邻接矩阵 广度优先 有向带权图 无向带权图
ECCV 2022丨轻量级模型架构火了,力压苹果MobileViT(附代码和论文下载)
黄东旭:TiDB的优势是什么?
Rocky/GNU之Zabbix部署(2)
系统设计.短链系统设计
"Actual Combat" based on part-of-speech extraction in the field of e-commerce and its decision tree model modeling
android的webview缓存相关知识收集
《实战》基于情感词典的文本情感分析与LDA主题分析
Zabbix干啥用?
Sping.事务的传播特性
数字图像隐写术之JPEG 隐写分析
Kyushu cloud as cloud computing standardization excellent member unit
分布式.分布式锁
16、注册中心-consul
Word 表格跨页,仍然显示标题
Centos 7.9 install PostgreSQL14.4 steps
prometheus 监控概述
4G通信模块CAT1和CAT4的区别









