Discuz! Database Error (145) Table './bbs/common_credit_rule_log' is marked as crashed and should be repaired
时间: 2024-04-09 07:27:09 浏览: 182
这错误提示表明你的 Discuz! 论坛数据库中的common_credit_rule_log" 表已经崩溃了,需要修复。修复数据库表可以通过以下步骤进行:
1. 首你需要登录到你数据库管理工具,例如 phpMyAdmin。
2.数据库管理工具中选择的 Discuz! 论坛所使用的。
3. 在数据库中找到 "common_credit_rule_log" 表。
4. 选择该表,并点击工具栏中的 "修复表" 选项。
这将试修复被标记为崩溃的表。修复完成后,你可以重新加载论坛页面,看是否还出现相同的错误提示。
如果修复表仍然无法解决问题,你还可以尝试通过其他方法来修复数据库,如使用命令行工具或联系你的主机提供商寻求帮助。
相关问题
145) Table './bbs/common_credit_rule_log' is marked as crashed and should be repaired
这个错误表明 `common_credit_rule_log` 表在数据库中被标记为崩溃,需要进行修复。你可以尝试使用以下步骤来修复这个问题:
1. 登录到你的数据库管理工具,例如 phpMyAdmin 或者 MySQL 命令行界面。
2. 选择你的 Discuz! 论坛所使用的数据库。
3. 执行以下 SQL 查询语句来修复表:
```
REPAIR TABLE `common_credit_rule_log`;
```
4. 等待修复操作完成,通常只需要几秒钟的时间。
5. 检查修复操作是否成功。如果成功,你应该能够重新访问论坛并且不再看到相同的错误信息。
请注意,数据库修复操作可能因数据库大小和性能而花费不同的时间。如果修复过程很长或者无法成功修复表,请考虑联系你的数据库管理员或者技术支持人员寻求进一步的帮助。
将QT += core QT -= gui CONFIG += c++11 TARGET = UavRectifyLoadLIb CONFIG += console CONFIG -= app_bundle TEMPLATE = app SOURCES += main.cpp # The following define makes your compiler emit warnings if you use # any feature of Qt which as been marked deprecated (the exact warnings # depend on your compiler). Please consult the documentation of the # deprecated API in order to know how to port your code away from it. DEFINES += QT_DEPRECATED_WARNINGS win32{ CONFIG(debug, debug|release){ DESTDIR = $$PWD/../../../../RasterManager/bin/Debug } else{ DESTDIR = $$PWD/../../../../RasterManager/bin/release } INCLUDEPATH += $$PWD/../../../include/gdal1101 DEPENDPATH += $$PWD/../../../include/gdal1101 } else{ CONFIG(debug, debug|release){ DESTDIR = $$PWD/../../../product/release32 } else{ DESTDIR = $$PWD/../../../product/release32 } } # You can also make your code fail to compile if you use deprecated APIs. # In order to do so, uncomment the following line. # You can also select to disable deprecated APIs only up to a certain version of Qt. #DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0x060000 # disables all the APIs deprecated before Qt 6.0.0 unix:!macx: LIBS += -L$$PWD/../../../product/release32/ -lUAVAutoRectifyMt -lUAVAutoRectify -lUAVAutoRectifyFi INCLUDEPATH += $$PWD/../include DEPENDPATH += $$PWD/../include unix:!macx: LIBS += -L$$PWD/../../../lib/opencvf249/ -lopencv_core unix:!macx: LIBS += -L$$PWD/../../../lib/opencvf249/ -lopencv_highgui unix:!macx: LIBS += -L$$PWD/../../../lib/opencvf249/ -lopencv_imgproc INCLUDEPATH += $$PWD/../../../lib/opencvf249 DEPENDPATH += $$PWD/../../../lib/opencvf249 unix:!macx: LIBS += -L$$PWD/../../../../../../../usr/local/lib/ -lopencv_core #unix:!macx: LIBS += -L$$PWD/../../../../../../../usr/local/lib/ -lopencv_highgui unix:!macx: LIBS += -L$$PWD/../../../../../../../usr/local/lib/ -lopencv_imgproc unix:!macx: LIBS += -L$$PWD/../../../../../../../usr/local/lib/ -lopencv_features2d unix:!macx: LIBS += -L$$PWD/../../../../../../../usr/local/lib/ -lopencv_imgcodecs INCLUDEPATH += $$PWD/../../../../../../../usr/local/include DEPENDPATH += $$PWD/../../../../../../../usr/local/include unix:!macx: LIBS += -L$$PWD/../../../product/release32/ -lDEMDriver unix:!macx: LIBS += -L$$PWD/../../../product/release32/ -lProjection unix:!macx: LIBS += -L$$PWD/../../../product/release32/ -lIImage_gC QMAKE_CXXFLAGS_RELEASE = $$QMAKE_CFLAGS_RELEASE_WITH_DEBUGINFO QMAKE_LFLAGS_RELEASE = $$QMAKE_LFLAGS_RELEASE_WITH_DEBUGINFO 转为cmake格式
根据给出的代码,可以将其转化为以下CMake代码:
```
cmake_minimum_required(VERSION 3.5)
project(UavRectifyLoadLIb LANGUAGES CXX)
set(CMAKE_CXX_STANDARD 11)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
set(CMAKE_AUTOMOC ON)
set(CMAKE_AUTORCC ON)
set(CMAKE_AUTOUIC ON)
find_package(Qt5Core REQUIRED)
add_executable(UavRectifyLoadLIb
main.cpp
)
target_link_libraries(UavRectifyLoadLIb
PRIVATE
Qt5::Core
UAVAutoRectifyMt
UAVAutoRectify
UAVAutoRectifyFi
DEMDriver
Projection
IImage_gC
opencv_core
opencv_highgui
opencv_imgproc
opencv_features2d
opencv_imgcodecs
)
target_include_directories(UavRectifyLoadLIb
PRIVATE
${CMAKE_CURRENT_SOURCE_DIR}/../../../include/gdal1101
${CMAKE_CURRENT_SOURCE_DIR}/../include
${CMAKE_CURRENT_SOURCE_DIR}/../../../lib/opencvf249
${CMAKE_CURRENT_SOURCE_DIR}/../../../../../../../usr/local/include
)
if(UNIX AND NOT APPLE)
target_link_directories(UavRectifyLoadLIb
PRIVATE
${CMAKE_CURRENT_SOURCE_DIR}/../../../product/release32
${CMAKE_CURRENT_SOURCE_DIR}/../../../../../../../usr/local/lib
)
endif()
if(WIN32)
if(CMAKE_BUILD_TYPE STREQUAL "Debug")
set_target_properties(UavRectifyLoadLIb PROPERTIES
RUNTIME_OUTPUT_DIRECTORY_DEBUG ${CMAKE_CURRENT_SOURCE_DIR}/../../../../RasterManager/bin/Debug
)
else()
set_target_properties(UavRectifyLoadLIb PROPERTIES
RUNTIME_OUTPUT_DIRECTORY_RELEASE ${CMAKE_CURRENT_SOURCE_DIR}/../../../../RasterManager/bin/release
)
endif()
else()
if(CMAKE_BUILD_TYPE STREQUAL "Debug")
set_target_properties(UavRectifyLoadLIb PROPERTIES
RUNTIME_OUTPUT_DIRECTORY_DEBUG ${CMAKE_CURRENT_SOURCE_DIR}/../../../product/release32
)
else()
set_target_properties(UavRectifyLoadLIb PROPERTIES
RUNTIME_OUTPUT_DIRECTORY_RELEASE ${CMAKE_CURRENT_SOURCE_DIR}/../../../product/release32
)
endif()
endif()
```
阅读全文