当前位置:网站首页>【phpstorm】 No data sources are configured to run this SQL and provide advanced c
【phpstorm】 No data sources are configured to run this SQL and provide advanced c
2022-06-10 20:45:00 【游戏编程】
前言
第一次在phpstorm连接数据库, 我已经在conn尝试连接了数据库并且也被提示连接无错误.
但是把conn导入到其他文件不仅不能用, 而且所有sql语句都标黄了.

不过我基本猜到了是数据库的问题.
一、尝试解决
刚开始它也不能写PHP, 然后就去File-Setting里配置了PHP, 我就想这次能不能也如法炮制去配置一下MySQL呢:

先是把路径引导到mysql.exe, 之后又引导到mysqld.exe, 很遗憾全都没用…
唯一变化的就是sql语句里的 result 变成了红色.
这不是更严重了吗…
解决方法
编辑器右上角点击 database , 呼出database添加面板:

正常情况下这里该是没有数据库的, 空白.

这时候点击:

添加数据库, 选取你要使用哪种数据库:

之后在弹出面板中输入数据库相关信息, 应用即可:

这样可以排除数据库连接上的问题.
作者:白瑕
游戏编程,一个游戏开发收藏夹~
如果图片长时间未显示,请使用Chrome内核浏览器。
边栏推荐
- 防抖和节流
- Leetcode advanced road - 125 Validate palindrome string
- Rotate menu 2.0
- Super detailed tutorial for installing mysql8 in centos7 (no pit!)
- An analysis of SQL query optimization principle (900w+ data from 17s to 300ms)
- Redis cache avalanche
- Leetcode advanced path - Search insertion location
- Leetcode advanced road - 136 A number that appears only once
- 微积分复习1
- Introduction to abbexa bacterial genome DNA Kit
猜你喜欢

php的exec函数

Abbkine column exkine Pro animal cell / tissue Total Protein Extraction Kit

Abbexa AML1 DNA binding ELISA Kit instructions

NFT版权/版税

【北大青鸟昌平校区】职教与普教协调发展,今年的中考会容易吗?

Qingniao Changping campus of Peking University: can I learn UI with a high school degree?

微积分复习1

Abbexa cdan1 siRNA instruction manual

Asynchronous, thread pool (completablefuture)

C language -- 4 first-time constant
随机推荐
2022-06-09 rk817 PMU battery temperature detection
入行须知:运维需要懂编程吗?
What should be paid attention to when designing Multilayer PCB?
MySQL inserts query results into other tables
Abbexa acrylamide peg NHS instructions
Leetcode advanced road - 136 A number that appears only once
北大青鸟昌平校区:高中学历可以学UI吗?
Signal and system review 1
[Warning] TIMESTAMP with implicit DEFAULT value is deprecated
Super detailed tutorial for installing mysql8 in centos7 (no pit!)
App test case
Qingniao Changping campus of Peking University: can I learn UI with a high school degree?
php伪协议实现命令执行详情
Leetcode advanced path - reverse string
01js basic null and undefined difference type conversion = = code block logical operator
H265 Nalu type judgment and SPS data analysis
protoc protoc-gen-go protobuf 之间的关系
Leetcode advanced road - 69 Square root of X
In 2021, the average salary will be released, and the IT industry will not be surprised
Notes to entry: do I need to know programming for O & M?