当前位置:网站首页>【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内核浏览器。
边栏推荐
猜你喜欢

标配双安全气囊,价格屠夫长安Lumin 4.89万起售

Calculus review 1

Understanding of related concepts of target detection

Redis cache breakdown

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

软件测试工程师是做什么的?

Abbexa 8-OHdG CLIA kit solution

Vissim仿真快速入门

【Microsoft Azure 的1024种玩法】七十五.云端数据库迁移之快速将阿里云RDS SQL Server无缝迁移到Azure SQL Databas

NFT copyright / royalties
随机推荐
2022 - 06 - 09 rk817 PMU Battery Temperature Detection
01js basic null and undefined difference type conversion = = code block logical operator
「运维有小邓」自助帐户解锁工具
The process of keyword search in Oracle tables
ROS virtual time
Naturalspeech model synthetic speech achieves human speech level for the first time in CMOS test
sql server行转列(pivot),列转行(unpivot)
Intelligent robot making progress in imitation learning
自媒体视频创作如何选择领域?
C language learning review -- 1 basic knowledge review
旋转菜单2.0
LeetCode 进阶之路 - 125.验证回文串
In 2021, the average salary will be released, and the IT industry will not be surprised
初中毕业生,选择中职学校也可以升入高等学府
Detailed explanation of MySQL range query optimization scenario instances
01js基础 null与undefined区别 类型转换 == 代码块 逻辑运算符
Signal and system review 1
在YUV图像上根据背景色实现OSD反色
2022-06-09 rk817 PMU battery temperature detection
Detailed steps and actual records of SQL server2019 installation (available for hands-on test)