Comments (4)
开启调试模式 给出具体报错
from shortlinks.
Table 'typecho.typecho_shortlinks' doesn't exist Typecho\Db\Adapter\SQLException: Table 'typecho.typecho_shortlinks' doesn't exist in /home/wwwroot/lnmp01/domain/[域名]/web/var/Typecho/Db/Adapter/Mysqli.php:114 Stack trace: #0 /home/wwwroot/lnmp01/domain/[域名]/web/var/Typecho/Db.php(391): Typecho\Db\Adapter\Mysqli->query('SELECT
target...', Object(mysqli), 1, 'SELECT', 'typecho_shortli...') #1 /home/wwwroot/lnmp01/domain/[域名]/web/var/Typecho/Db.php(440): Typecho\Db->query(Object(Typecho\Db\Query)) #2 /home/wwwroot/lnmp01/domain/[域名]/web/usr/plugins/ShortLinks/Action.php(162): Typecho\Db->fetchRow(Object(Typecho\Db\Query)) #3 /home/wwwroot/lnmp01/domain/[域名]/web/usr/plugins/ShortLinks/Action.php(107): ShortLinks_Action->getTarget('aHR0cHM6Ly9naXR...') #4 /home/wwwroot/lnmp01/domain/[域名]/web/var/Typecho/Router.php(99): ShortLinks_Action->shortlink() #5 /home/wwwroot/lnmp01/domain/[域名]/web/index.php(23): Typecho\Router::dispatch() #6 {main}
您好,这是报错信息。[域名]做了替换。
from shortlinks.
好像是数据库没有办法创建,手动创建了表和 列,现在可以正常运行了。
`USE typecho;
CREATE TABLE typecho_shortlinks
(
id
int(10) UNSIGNED NOT NULL AUTO_INCREMENT,
short_key
varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
target_url
varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
PRIMARY KEY (id
),
UNIQUE KEY short_key
(short_key
)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
ALTER TABLE typecho_shortlinks
ADD COLUMN target
VARCHAR(255) NOT NULL;
ALTER TABLE typecho_shortlinks
ADD COLUMN key
VARCHAR(255) NOT NULL;
`
from shortlinks.
你是什么环境,什么数据库,数据库用户有没有建表权限
from shortlinks.
Related Issues (19)
- 增加彻底卸载功能 HOT 2
- 提个新功能 HOT 6
- bug HOT 1
- 可以适配一下vditor编辑器么 HOT 3
- Plugin.php多了一行 HOT 9
- [^1]脚注链接错误 HOT 2
- 帮忙加一个忽略(target=blank)属性的配置 HOT 1
- 你好,可以设置链接的长度吗,目前的链接挺长的,如果可以缩短成5位或者6位就好了 HOT 1
- 启用错误 HOT 2
- 问题反馈 Undefined constant "Helper" HOT 1
- 短链管理空白 HOT 4
- 找到你啦 HOT 1
- 缺 rel=nofollow功能 HOT 1
- 启用伪静态和固定链接后插件无法工作 HOT 2
- SQLite 版本出错 SQLSTATE[HY000]: General error: 17 database schema has changed HOT 1
- 插件很好,但评论区链接没有在新窗口打开 HOT 2
- 提交一个模板 HOT 4
- MariaDB 报错 SQLSTATE[42000]: Syntax error or access violation: 1064
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from shortlinks.