当前位置:网站首页>MySql error: SqlError(Unable to execute query", "Can't create/write to file OS errno 2 - No such file...
MySql error: SqlError(Unable to execute query", "Can't create/write to file OS errno 2 - No such file...
2022-07-30 15:13:00 【Black_Friend】
Question:
When I tried to use the command to write the data in mysql to the database today, I reported an error:
QSqlError("1", "QMYSQL: Unable to execute query", "Can't create/write to file 'd:\test.xls' (OS errno 2 - No such file or directory)")My command is this:
QString strFileName = QString("select * from result where ") + str + "into outfile 'd:\\test.xls'";I found a lot of solutions on the Internet:
Try if you can solve your problem, if not, try it
My:
QString strFileName = QString("select * from result where ") + str + "into outfile 'd:/test.xls'";In database writing, try to use less backslashes and more slashes.I think my error is because of this.I still don't use backslashes anymore.
Of course, my approach may only be adapted to my problem.If you can't solve your problem, please don't spray me, thank you guys.
I am just an ordinary code farmer in the code field~
边栏推荐
- Flink优化
- 关于容器的小案例
- ESP32 Repeated Reboot Issue Arduino Shield Power Outage Detector
- Before quitting, make yourself a roll king
- Cookie simulation login "recommended collection"
- 双碳目标下:农田温室气体排放模拟
- Machine learning difference in the competition and industry application
- Application of time series database in the field of ship risk management
- 吃透Chisel语言.29.Chisel进阶之通信状态机(一)——通信状态机:以闪光灯为例
- v-model组件化编程应用
猜你喜欢

浅析显卡市场的未来走向:现在可以抄底了吗?

ECCV 2022 | 通往数据高效的Transformer目标检测器

Desktop Software Development Framework Awards

算力顶天地,存力纳乾坤:国家超级计算济南中心的一体两面

Start learning C language

Flask框架——Flask-SQLite数据库

Huawei issues another summoning order for "Genius Boys"!He, who had given up an annual salary of 3.6 million, also made his debut

MongoDB starts an error Process: 29784 ExecStart=/usr/bin/mongod $OPTIONS (code=exited, status=14)

MaxWell scraped data

泡沫褪去,DeFi还剩下什么
随机推荐
MongoDB starts an error Process: 29784 ExecStart=/usr/bin/mongod $OPTIONS (code=exited, status=14)
Meta首份元宇宙白皮书9大看点,瞄准80万亿美元市场
关于华为应用市场审核App无法启动的问题
ToDesk版本更新,引入RTC传输技术,是否早以替代向日葵远程控制?
Understand Chisel language. 28. Chisel advanced finite state machine (2) - Mealy state machine and comparison with Moore state machine
The highest level of wiring in the computer room, the beauty is suffocating
Conversion between pytorch and keras (the code takes LeNet-5 as an example)
内容产品进化三板斧:流量、技术、产品形态
异常情况处置方案
MySql报错:SqlError(Unable to execute query“, “Can‘t create/write to file OS errno 2 - No such file...
What should I do if the sql server installation fails (what should I do if the sql server cannot be installed)
Smart Contract Security - Private Data Access
Still saying software testing doesn't have a midlife crisis?9 years of test engineers were eliminated
Hello,World
惊艳!京东T8纯手码的Redis核心原理手册,基础与源码齐下
算力顶天地,存力纳乾坤:国家超级计算济南中心的一体两面
双碳目标下:农田温室气体排放模拟
有关收集箱的改进建议
自动化办公|办公软件和亿图脑图MindMaster快捷键
Lock wait timeout exceeded解决方案