Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. International
  3. Chinese
  4. 6.5.3 mysql QMYSQL driver not loaded 请求帮忙
Qt 6.11 is out! See what's new in the release blog

6.5.3 mysql QMYSQL driver not loaded 请求帮忙

Scheduled Pinned Locked Moved Unsolved Chinese
2 Posts 2 Posters 1.1k Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • ? Offline
    ? Offline
    A Former User
    wrote on last edited by
    #1

    qt6.5.3 使用 mysql 提示 QMYSQL driver not loaded ,根据编译步骤,把驱动编译完成,放进环境里面,QSqlDatabase::drivers();显示有mysql驱动,但是实际调用依然提示 QMYSQL driver not loaded ,有没有大佬知道怎么回事

    1 Reply Last reply
    0
    • JonBJ Online
      JonBJ Online
      JonB
      wrote on last edited by
      #2

      Set environment variable QT_DEBUG_PLUGINS=1 before running your program, then run it. This gives diagnostic output, look through it to see why it fails to load QMYSQL driver.

      在运行程序之前设置环境变量“QT_DEBUG_PLUGINS=1”,然后运行它。 这会提供诊断输出,查看它以了解为什么无法加载“QMYSQL”驱动程序。

      1 Reply Last reply
      0

      • Login

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved