当前位置:网站首页>mysql进阶(十七)Cannot Connect to Database Server问题分析
mysql进阶(十七)Cannot Connect to Database Server问题分析
2022-07-22 09:54:00 【InfoQ】
一、前言
The user specified as a definer ('root'@'localhost') does not exist

二、问题分析
- 可能数据库服务没有启动;
- 可能指定的数据库连接用户名或密码不正确;
- 可能数据库连接语句写得不正确;
- 可能数据库中没有指定的数据库存在;
- 可能没引sql包或没有驱动程序;
三、解决方案
C:\Program Files\MySQL\MySQL Server 5.7\bin
mysql -u root -p;


my.ini

Can't connect to MySQL server on '127.0.0.1' (10061)

C:\Windows\System32\drivers\etc

telnet 127.0.0.1 3308

my.ini
netstat -an
TIME_WAIT

“Host 'localhost' is not allowed to connect to this MySQL server”
mysql


四、延伸阅读 mysql批量删除大量数据
DELETE FROM syslogs WHERE statusid=1
lock wait timeout exceed
MySQL
DELETE FROM syslogs WHERE status=1 ORDER BY statusid LIMIT 10000;
limit
limit
delete
where
update
delete
limit 1
边栏推荐
- Solution to unsuccessful (invalid) password modification of MySQL
- CCF 201803_1 跳一跳
- 蓝队资源大合集
- Force deduction solution summary 814 binary tree pruning
- MFC对话框程序只运行单个实例 的简单示例
- 工业路由器油田无线监控
- Force deduction solution summary 513- find the value of the lower left corner of the tree
- 错过等一年!百度超级链数藏发行服务限时五折
- Why is it necessary to rewrite the hashcode method when rewriting the requests method
- Mail Informer
猜你喜欢
In his early 30s, he became a doctoral director of Fudan University. Chen Siming: I want to write both codes and poems
Grafana panel - modify visual text and background colors
万兴PDF专家v8.3.8.1253专业版
Rongyun ramble: no one can avoid "video conference"
自然语言处理NLP文本分类顶会论文阅读笔记(二)
Swagger UI introduction and common notes
软件产业未来发展的几个趋势
arguments
Connectivity of digraph
Flutter premier programme Hello world!
随机推荐
What is "real time"
有向图的连通性
The linear layout of fluent fills one line with two controls
Flutter's first program Hello world!
CCF 201803_1 跳一跳
管理的艺术-通过领导力驱动软件研发效能提升
Force deduction solution summary 814 binary tree pruning
由浅入深详解NLP中的Adapter技术
Flutter 第一个程序Hello World!
Jackson parsing JSON detailed tutorial
In his early 30s, he became a doctoral director of Fudan University. Chen Siming: I want to write both codes and poems
pytest接口自动化测试框架 | pytest断言
Mail Informer
Renjie, chief scientist of rongyun: experience produces talents, and career "experience > experience"
Don't let fear of marriage kill your happiness!
pytest接口自动化测试框架 | pytest参数化
Wanxing PDF expert v8.3.8.1253 Professional Edition
About human resource outsourcing companies
Batch check crawler
pytest接口自动化测试框架 | pytest安装与规则