当前位置:网站首页>How Navicat Connects to MySQL
How Navicat Connects to MySQL
2022-07-30 00:33:00 【m0_67393157】
There are many database connection tools on the market, such as Navicat, SQLYog, WorkBench, etc. The most used ones are Navicat.Now let's talk about how Navicat connects to Mysql. This article is only applicable to Xiaobai, and God can skip it.
1. Open Navicat and click the [Connect] button in the upper left corner.

2. Create a new connection, everyone should pay attention. The new connection here is a new connection, not a new database. I see that many people write the connection name as the library name, which is wrong.The ability to create multiple connections means that for example, we can connect to the local mysql, the mysql of the development environment server, or the test environment, production environment and other different Mysql.
There are many friends who have forgotten the password of the MySQL database. We can use the [Connection Test] button in the lower left corner to test whether the password is correct.

3. After the connection is successful, double-click the connection name in the list on the left, and you can see the system library that comes with Mysql.
Note: Several libraries that come with Mysql here are system libraries. Don't think that this is a mess and delete it.This will cause Mysql to run abnormally.

4. After the connection is successful, we need to create a new database, right-click on the connection name and select New Database.
Fill in the database name (the database name is usually the same as the sql file name provided by the source space station), the character set is utf-8, and the collation rule is utf8_general_ci.

5. Execute the SQL file. After the database is successfully created, we need to import the SQL file, right-click on the database name, and select [Run SQL File].
6. Find the local path where the sql file is located. After selecting it, click [Start] to execute the SQL file

7. After the execution is completed, there will be a prompt whether the execution is successful, such as success: Finished successfully.
Unsuccessful: Finished unsuccessfully. If it is unsuccessful, you need to check which statements are reporting the error, possibly because of the incompatible SQL syntax due to the version problem.

8. After successful execution, we see that the data table is still empty.At this time, many small partners are puzzled. Obviously, the implementation has been successful, why is there no table?Important: [Refresh] is required after the execution is completed.
Click the right mouse button on the [Table] and select [Refresh]. After the refresh is completed, all the tables will be displayed.


Have you learned it, my friend?
Let me introduce myself first. The editor graduated from Shanghai Jiaotong University in 2013. I worked in a small company and went to big factories such as Huawei and OPPO. I joined Alibaba 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
边栏推荐
- 自媒体短视频怎么提高播放量?从这三个方面入手
- He used to cells harvested trypsin & release procedure
- Graph Theory: Bipartite Graphs
- [Training DAY16] ALFA [convex hull] [computational geometry]
- [Best training DAY16] KC's Can [Dynamic programming]
- 软考 --- 数据库(5)数据库控制
- How do we-media people create explosive articles?These 3 types of articles are most likely to explode
- 4 hotspot inquiry networks necessary for new media operations
- 1592. 重新排列单词间的空格
- 自学HarmonyOS应用开发(49)- 引入地图功能
猜你喜欢
随机推荐
Go日志库——logrus
验证框架-01
Missing X64 mfc140u. DLL file - > application cannot normal boot (0 xc000007b) solution
KDE Frameworks 5.20.0: Plasma welcomes many improvements
Chinese semantic matching
kubernets学习 -环境搭建
Types and check set (set), study T treasure code
自媒体短视频怎么提高播放量?从这三个方面入手
二维数组的查找
ZLMediaKit源码学习——UDP
[Experience] Experience Summary - Lessons Learned
Selenium上传文件有多少种方式?不信你有我全
MySql的初识感悟,以及sql语句中的DDL和DML和DQL的基本语法
低压差线性稳压器MPQ2013A-AEC1品牌MPS国产替代
STM32 - OLED display experiment
He cell separation technology 丨 basic primary cell separation methods and materials
Worthington dissociating enzyme: detailed analysis of neutral protease (dispase)
从尾到头打印链表
Worthington解离酶:胰蛋白酶及常见问题
Towhee 每周模型








