GithubHelp home page GithubHelp logo

如何整体调整图片的地址连接?服务器迁移后,全局修改数据库文件中的图片地址,修改完会报错:SQLSTATE[HY000]: General error: 11 database disk image is malformed about showdoc HOT 3 OPEN

Zeng-QJ avatar Zeng-QJ commented on August 16, 2024
如何整体调整图片的地址连接?服务器迁移后,全局修改数据库文件中的图片地址,修改完会报错:SQLSTATE[HY000]: General error: 11 database disk image is malformed

from showdoc.

Comments (3)

star7th avatar star7th commented on August 16, 2024

showdoc使用sqlite数据库。数据库文件是安装目录下的Sqlite/showdoc.db.php。你可以网络搜索如何在命令行中使用 sqlite数据库.或者使用SQLiteStudio等可视化工具

如果使用文本编辑工具,会导致数据库文件永久损坏。

from showdoc.

Zeng-QJ avatar Zeng-QJ commented on August 16, 2024

我更新了upload_file和page两个表里面的地址,更新完之后全局检索数据库文件里面还是有没有替换掉的地址,没找到这些数据是存在哪些表里面。这个能指导一下吗?就是输入数据一般存在哪些表中?还是只能遍历各个表里面的所有字段。

from showdoc.

star7th avatar star7th commented on August 16, 2024

我印象中就只是这两个表。如果还有,你可以说出具体情况。
另外遍历各个表也不难,没多大数据量。

from showdoc.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.