1

I do regularly change the data directory from the default /var/lib/mysql to something else like /var/lib/mysql1 It works wihtout any issues on 5.0

On 5.1 version of Mysql, it fails to start once I change the datadir with the following message...

Starting MySQL.Manager of pid-file quit without updating file.[FAILED]

I have already created the new directory and changed it's permission. Anything else must be going wrong and I can not figure it out.

Update:

There are 2 error messages in the error log.

[ERROR] Can't open the mysql.plugin table. Please run mysql_upgrade to create it.

[ERROR] Fatal error: Can't open and lock privilege tables: Table 'mysql.host' doesn't exist

3
  • have you ran mysql_upgrade? MySql 5.1 has some new tables in the INFORMATION_SCHEMA database that seem to be missing Commented Jan 10, 2011 at 8:43
  • @The Scrum Meister: his mysql instance cannot find mysql database, which stores all the service data. INFORMATION_SCHEMA is a virtual database contains of set of views, it never persists in any kind. Commented Jan 10, 2011 at 8:58
  • I reinstalled mysql 5.1 version using rpm -e and rpm -ivh and it solved the problem. Commented Jan 10, 2011 at 9:17

1 Answer 1

1

Have you moved all the files and directories from old location to new one? If no - that is what you have to do now.

Sign up to request clarification or add additional context in comments.

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.