MySQL Forums
Forum List  »  Install & Repo

Re: Fatal error: Can't open and lock privilege tables: Table 'mysql.host' doesn't exist
Posted by: cchan
Date: May 19, 2006 02:48PM

I had the same issue as well. After reading this thread (and a few others), I was able to resolve by adding basedir and datadir to my.cnf. And make sure that host.frm is under var/mysql/mysql, if not, run bin/mysql_install_db and permissions correctly for the 'mysql' user or default user.

In my.cnf:
[mysqld]
basedir=/opt/mysql
datadir=/opt/mysql/var/mysql

I also had to provide a link from /opt/mysql/var/my.cnf to /opt/mysql/var/mysql/my.cnf because, for some reason, mysqld_safe would look for /opt/mysql/var/my.cnf.

Hope this helps others.

Options: ReplyQuote


Subject
Written By
Posted
Re: Fatal error: Can't open and lock privilege tables: Table 'mysql.host' doesn't exist
May 19, 2006 02:48PM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.