Mediawiki数据库错误1205(Mediawiki Database Error 1205)
我刚在http://konton.us/wiki上安装了一份新的mediawiki副本
我很高兴和我的维基一起玩,用信息突然填满这个地方,当我创建了一个名为Gameplay_Mechanics的文章时,一切都已经死了。
http://konton.us/wiki/Gameplay_Mechanics
我收到了这个错误:
发生了数据库查询语法错误。 这可能表示软件中存在错误。 最后一次尝试的数据库查询是:(来自函数“”内的SQL查询)。 数据库返回错误“1205:超出锁定等待超时;尝试重新启动事务(internal-db.s76387.gridserver.com)”。
我能够通过'清空'文章然后保存它来修复它 - 只是再次重新填充它但是......它发生在不到1天之后......再次,所以我有点想知道什么是实际的根这个荒谬的错误的原因。
所有帮助表示赞赏
I just installed a fresh copy of mediawiki on http://konton.us/wiki
I was all happy playing around with my wiki, filling up the place with information and suddently, when I created an article by the name of Gameplay_Mechanics, it all went dead.
http://konton.us/wiki/Gameplay_Mechanics
I got this error:
A database query syntax error has occurred. This may indicate a bug in the software. The last attempted database query was: (SQL query hidden) from within function "". Database returned error "1205: Lock wait timeout exceeded; try restarting transaction (internal-db.s76387.gridserver.com)".
I was able to fix it by 'emptying' the article and then saving it - only to repopulate it again but...it happened less than 1 day later...again, so I'm kind of wondering what is the ACTUAL ROOT CAUSE of this ridiculous error.
All help is appreciated
原文:https://stackoverflow.com/questions/3409096
最满意答案
"*"
表示“零或更多” 。 您可能需要"+"
,表示“一个或多个” 。 所以,m/^.*?,\d+[\~]{2}\w\s\d*\w-\d*~.*?\^.*?-.*?-.*?_\w$/
不匹配
",~~Z 10Y-123~This is a test^ABC-DE-_F"
"*"
means "zero or more". You may want"+"
, which means "one or more". So,m/^.*?,\d+[\~]{2}\w\s\d*\w-\d*~.*?\^.*?-.*?-.*?_\w$/
does not match
",~~Z 10Y-123~This is a test^ABC-DE-_F"
相关问答
更多-
你什么时候都没有写任何东西到磁盘上。 如果您要修改文件,则应该明确地执行此操作。 您应该找到关于如何在官方文档中处理文件的一些指示。 You're not writing anything to disk at any moment. If you're looking to modify the file, you should do it explicitly. You should find some pointers on how to hand Files in the official doc. ...
-
改进Javadoc正则表达式(Improving Javadoc regex)[2022-03-22]
如果您需要精确度并且正在使用Java代码,那么最好与javadoc(或doxygen)集成。 也许这会有所帮助: 如何从源文件中提取JavaDoc注释 如果你不需要精确,那么你应该能够通过分阶段进行正常表达式以适应大多数情况:可能首先消除混淆部分(//和非javadoc / * * / comments),然后寻找javadoc评论。 但是你还必须决定一种处理恰好嵌入字符串的Javadoc分隔符的方法......问题更多的是关于词法分析。 也许这对你的申请来说已经足够了? If you want exact ... -
改进正则表达式重复组(Refining a regex repeating group)[2021-10-12]
只需使用[^-]+并迭代结果。 Java中的插图: // yours Matcher m1 = Pattern.compile("([^-]*)-([^-]*)").matcher("abc - def"); if (m1.find()) { System.out.println(m1.group(1)); System.out.println(m1.group(2)); } // mine Matcher m2 = Pattern.compile("[^-]+").matcher("ab ... -
我的正则表达式可以改进吗?(Can my Regex be improved?)[2021-11-13]
为什么甚至使用Regex只使用DateTime.TryParseExact方法。 我会像对其他字符的额外检查一样实现它: bool IsCorrectFormat(string input) { //14 is a magic number for the length of the expected format if (input.Length == 14 && input.StartsWith("T", StringComparison.OrdinalIgnoreCase)) ... -
如何改进这个正则表达式(How to improve this regex)[2022-01-17]
您可以使用: var b = this.innerHTML.match(/href=(['"])(.+?)\1/); window.location.assign( b[2] ); // #div46 删除g标志以获得结果数组中的所有匹配组。 You can use: var b = this.innerHTML.match(/href=(['"])(.+?)\1/); window.location.assign( b[2] ); // #div46 Remove g flag to get all ... -
需要帮助改进正则表达式(Need help refining regex)[2024-02-10]
"*"表示“零或更多” 。 您可能需要"+" ,表示“一个或多个” 。 所以, m/^.*?,\d+[\~]{2}\w\s\d*\w-\d*~.*?\^.*?-.*?-.*?_\w$/ 不匹配 ",~~Z 10Y-123~This is a test^ABC-DE-_F" "*" means "zero or more". You may want "+", which means "one or more". So, m/^.*?,\d+[\~]{2}\w\s\d*\w-\d*~.*?\^.*?-.* ... -
您可以使用\d替换[0-9]{1} ,如下所示: /\d\.\d\.\d$/ $匹配行的结尾。 编辑:根据Rob-W的反馈进行更新 You can replace [0-9]{1} with \d as follows: /\d\.\d\.\d$/ The $ matches the end of the line. Edit: updated based on Rob-W's feedback
-
我怎样才能改进这个正则表达式?(How can I improve this regex?)[2023-12-29]
尝试这个: ^/(creditcards(/.*)?)?$ Try this: ^/(creditcards(/.*)?)?$ -
由于您基本上只需要获取第8个字段,因此根本不需要正则表达式。 这个小片段应该可以解决问题(很好地包装在一个易于使用的方法中 - 我甚至为你做了错误处理部分): public string GetInvoiceNumber(string line) { if(line == null) { throw new ArgumentNullException("line"); } var res = line.Split('~'); if(res.Leng ...
-
正则表达式声明改进(Regex statement Improvement)[2024-02-28]
expresion \$\([^$()]+\)符合您的规范。 它在括号内至少需要一个非$()字符。 您可以在此处测试: http : //regex101.com/r/fL6sV3/1 The expresion \$\([^$()]+\) matches your specification. It requires at least one non-$() character between parenthesis. You can test it here: http://regex101.com/r ...