Home > Database > Mysql Tutorial > body text

mysql 出现 Invalid (old?) table or database name '复件 user

WBOY
Release: 2016-06-07 17:52:25
Original
1965 people have browsed it

我的服务器最近老出现Invalid (old?) table or database name \'复件 user\'提示,导致mysql访问不了,下面来看网上找的一些解决办法

错误

事件类型: 错误
事件来源: MySQL
事件种类: 无
事件 ID: 100
日期:  2012-10-12
事件:  20:42:04
用户:  N/A
计算机: ADMINISTRATOR74
描述:
Invalid (old?) table or database name '复件 user'

For more information, see Help and Support Center at http://www.mysql.com. 

解决方法

 I stopped mysql, renamed /var/lib/mysql/database-name to /var/lib/mysql/database_name, and then ran this SQL to update the permissions:

我停止MySQL的,改名的/var/lib/MySQL  /var li  mysql DATABASE_NAME 数据库名称,然后运行这个SQL更新的权限:

 代码如下 复制代码

UPDATE mysql.db SET Db = 'database_name' WHERE Db = 'database-name';

FLUSH PRIVILEGES; FLUSH PRIVILEGES;

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!