当前位置:网站首页>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
边栏推荐
猜你喜欢
ECCV 2022丨轻量级模型架构火了,力压苹果MobileViT(附代码和论文下载)
Shell变量与赋值、变量运算、特殊变量
I have been working in software testing for 3 years, how did I go from just getting started to automated testing?
调度中心xxl-Job
网站频繁出现mysql等数据库连接失败等信息解决办法
Word/Excel 固定表格大小,填写内容时,表格不随单元格内容变化
MySQL的存储过程
Rocky/GNU之Zabbix部署(1)
Kyushu cloud as cloud computing standardization excellent member unit
35. 反转链表
随机推荐
手把手教你配置Jenkins自动化邮件通知
网站频繁出现mysql等数据库连接失败等信息解决办法
C language _ structure pointer array function voting system
TiKV主要内存结构和OOM排查总结
观察者(observer)模式(一)
Teach you how to configure Jenkins automated email notifications
VS warning LNK4099:未找到 PDB 的解决方案
link与@import的区别
软件测试工作3年了,谈谈我是如何从刚入门进阶到自动化测试的?
Know what DTU is 4GDTU equipment
typescript13 - type aliases
仿牛客网项目总结
"Actual Combat" based on part-of-speech extraction in the field of e-commerce and its decision tree model modeling
【flask入门系列】Flask-SQLAlchemy的使用
JS逆向之浏览器补环境(一)
Installation problem corresponding to tensorflow and GPU version
87. 把字符串转换成整数
Basic Parameters of RF Devices 1
蛮力法/邻接表 广度优先 有向带权图 无向带权图
MySQL的分页你还在使劲的limit?