当前位置:网站首页>How Navicat Connects to MySQL
How Navicat Connects to MySQL
2022-08-02 06:09:00 【Well well well!】
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
边栏推荐
- 迅为RK3568开发板编译Buildroot-全自动编译
- 11种你需要了解的物联网(IoT)协议
- MySQL 8.0.29 解压版安装教程(亲测有效)
- 【疑问】最终推荐的loose pattern 如果依赖module 没有加载完毕,行为如何,是否报错
- "Digital reconstruction of the system, getting the CEO is the first step"
- Go语学习笔记 - grpc serverclient protobuf 从零开始Go语言
- 认识CAN光纤转换器的光纤接口和配套光纤线缆
- [Digital IC hand-tear code] Verilog fixed priority arbiter | topic | principle | design | simulation
- Android Studio 实现登录注册-源代码 (连接MySql数据库)
- [QNX Hypervisor 2.2用户手册]9.20 vdev
猜你喜欢
随机推荐
100 latest software testing interview questions in 2022, summary of common interview questions and answers
MySQL multi-table association one-to-many query to get the latest data
Go语言中定时任务库Cron使用详解
ApiPost is really fragrant and powerful, it's time to throw away Postman and Swagger
2022河南萌新联赛第(四)场:郑州轻工业大学 C - 最大公因数
元空间内存溢出
MySQL 的 limit 分页查询及性能问题
[网鼎杯 2020 青龙组]singal
Navicat报错:1045-Access denied for user [email protected](using passwordYES)
CNN 理解神经网络中卷积(大小,通道数,深度)
系统(层次)聚类
Mycat2.0搭建教程
PDF file conversion format
[QNX Hypervisor 2.2用户手册]9.18 unsupported
MySQL 8.0.29 set and modify the default password
Android studio连接MySQL并完成简单的登录注册功能
mysql 查询表 所有字段
[QNX Hypervisor 2.2用户手册]9.17 tolerance
选择黑盒测试用例设计方法的综合策略方案总结
ERROR 1045 (28000) Access denied for user 'root'@'localhost'Solution









