Mysql displays Invalid (old ?) Tableordatabasename 'restore user-mysql tutorial

Source: Internet
Author: User
Invalid (old ?) Tableordatabasename: the reply user prompts that mysql cannot be accessed. Here are some solutions on the Internet.

Invalid (old ?) Table or database name \ 'recovery user \ 'prompt, resulting in mysql access failure. Here are some solutions available on the Internet.

Error

Event Type: Error
Event Source: MySQL
Event Type: None
Event ID: 100
Date: 2012-10-12
Event: 20:42:04
User: N/
Computer: ADMINISTRATOR74
Description:
Invalid (old ?) Table or database name 'recovery user'

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

Solution

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

I stopped MySQL, renamed the/var/lib/MySQL/var li mysql DATABASE_NAME database name, and then run the SQL update permission:

The code is as follows:

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

Flush privileges;

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.