我有一个空的数据库,我不能放弃.最初,它包含一个我无法从中选择的表.所以我从该数据库中删除了所有表,并尝试DROP数据库但没有成功:
mysql> drop database my_database;
ERROR 2013 (HY000): Lost connection to MySQL server during query
Run Code Online (Sandbox Code Playgroud)
现在我有一个我无法在服务器中删除的空数据库.
我检查了mysql的error.log,这里是输出:
130812 10:02:45 InnoDB: Assertion failure in thread 140409656780544 in file row0mysql.c line 3682
InnoDB: Failing assertion: table
InnoDB: We intentionally generate a memory trap.
InnoDB: Submit a detailed bug report to http://bugs.mysql.com.
InnoDB: If you get repeated assertion failures or crashes, even
InnoDB: immediately after the mysqld startup, there may be
InnoDB: corruption in the InnoDB tablespace. Please refer to
InnoDB: http://dev.mysql.com/doc/refman/5.5/en/forcing-innodb-recovery.html
InnoDB: …
Run Code Online (Sandbox Code Playgroud) 我正在拼命寻找一个正则表达式,它匹配a到z,A到Z,0到9和" - "之间的任何东西.如果要检查的字符串等于"admin",则相同的正则表达式不能匹配.
我试过这个:
/^(?!admin)|([-a-z0-9]{1,})$/i
但它不起作用,它匹配字符串管理员,即使我添加了负面前瞻的东西.
我正在使用这个正则表达式与PHP(PCRE).