Bug #33309 Install: mysql_install_db didn't do anything
Submitted: 18 Dec 2007 1:43 Modified: 18 Dec 2007 11:08
Reporter: Peter Gulutzan Email Updates:
Status: Duplicate Impact on me:
None 
Category:MySQL Server: Installing Severity:S3 (Non-critical)
Version:6.0.5-alpha-debug OS:Linux (SUSE 10 64-bit)
Assigned to: CPU Architecture:Any

[18 Dec 2007 1:43] Peter Gulutzan
Description:
I use the mysql-6.0 source tree.
Today I said 'bk pull'. 'bk changes' says
"
ChangeSet@1.2772, 2007-12-16 12:54:05+03:00, kostja@bodhi.(none) +1 -0
  Disable back user_limits test (Bug 23921)
... etc.
"

I destroyed all files in datadir
(/usr/local/mysql/var) with 'rm -R *'.
Then I re-installed the basic database
with /usr/local/mysql/bin/mysql_install_db.
Then I tried to start mysqld, and was told:
"Can't open and lock privilege tables: Table 'mysql.host' doesn't exist".
This is true. mysql_install_db made the mysql directory, but it's empty.

How to repeat:
su root
cd /usr/local/mysql/var
rm -R *
/usr/local/mysql/bin/mysql_install_db
dir mysql
/usr/local/mysql/libexec/mysqld
[18 Dec 2007 10:50] MySQL Verification Team
Thank you for the bug report.
[18 Dec 2007 11:08] Daniel Fischer
This looks like a duplicate of bug#33192.