MySQL installations fail to create grant table
I dabbled a bit a few years ago and everything was OK.
Now, after a few upgrades, my tables are gone including the Grant table. None of the other matters because it was just a test db of my own. But the loss of the Grant table has me stopped. The only table that will show for either version is the test table.
the basics:
I am running OsX 10.4.8 on a Dual 1G XServe
I have both v. 4.1.13 and 5.0.27 installed and I can start either.
I used the .pkg install and also ran the MYSQLStartupItem.pkg. I would prefer to set up the v 5.0 but would be happy with either. Attempts to run mysql installdb have failed for both versions.
Results of latest attempt
(working locally on the server itself):
x:/usr/local/mysql admin$ ls -l
total 88
-rw-r--r-- 1 root wheel 19071 Oct 20 20:22 COPYING
-rw-r--r-- 1 root wheel 5806 Oct 21 04:21 EXCEPTIONS-CLIENT
-rw-r--r-- 1 root wheel 7752 Oct 21 04:21 INSTALL-BINARY
-rw-r--r-- 1 root wheel 1380 Oct 20 20:22 README
drwxr-xr-x 53 root wheel 1802 Jan 17 17:50 bin
-rwxr-xr-x 1 root wheel 801 Oct 21 04:30 configure
drwxr-x--- 13 mysql wheel 442 Jan 17 19:17 data
drwxr-xr-x 4 root wheel 136 Oct 21 04:31 docs
drwxr-xr-x 64 root wheel 2176 Oct 21 04:31 include
drwxr-xr-x 10 root wheel 340 Oct 21 04:31 lib
drwxr-xr-x 4 root wheel 136 Oct 21 04:31 man
drwxr-xr-x 13 root wheel 442 Oct 21 04:31 mysql-test
drwxr-xr-x 3 root wheel 102 Oct 21 04:31 scripts
drwxr-xr-x 5 root wheel 170 Oct 21 04:31 share
drwxr-xr-x 31 root wheel 1054 Oct 21 04:31 sql-bench
drwxr-xr-x 14 root wheel 476 Oct 21 04:31 support-files
drwxr-xr-x 21 root wheel 714 Oct 21 04:31 tests
x:/usr/local/mysql admin$ scripts/mysql installdb --user=mysql
mkdir: ./data/mysql: Permission denied
chmod: ./data/mysql: Permission denied
mkdir: ./data/test: Permission denied
chmod: ./data/test: Permission denied
chown: ./data/mysql: Permission denied
chown: ./data/test: Permission denied
Installing all prepared tables
070118 19:37:58 [Warning] Can't create test file /usr/local/mysql-standard-5.0.27-osx10.4-powerpc/data/x.lower-test
070118 19:37:58 [Warning] Can't create test file /usr/local/mysql-standard-5.0.27-osx10.4-powerpc/data/x.lower-test
./bin/mysqld: Can't change dir to '/usr/local/mysql-standard-5.0.27-osx10.4-powerpc/data/' (Errcode: 13)
070118 19:37:58 [ERROR] Aborting
070118 19:37:58 [Note] ./bin/mysqld: Shutdown complete
./bin/mysql create_systemtables: line 766: 4963 Broken pipe cat <<END OFDATA
use mysql;
set table_type=myisam;
$c_d
$i_d
$c_h
$i_h
$c_u
$i_u
$c_f
$i_f
$c_t
$c_c
$c_ht
$c_hc
$c_hr
$c_hk
$c_tzn
$i_tzn
$c_tz
$i_tz
$c_tzt
$i_tzt
$c_tztt
$i_tztt
$c_tzls
$i_tzls
$c_p
$c_pp
END OFDATA
Installation of system tables failed!
Examine the logs in ./data for more information.
You can also try to start the mysqld daemon with:
./bin/mysqld --skip-grant &
You can use the command line tool
./bin/mysql to connect to the mysql
database and look at the grant tables:
shell> ./bin/mysql -u root mysql
mysql> show tables
Try 'mysqld --help' if you have problems with paths. Using --log
gives you a log in ./data that may be helpful.
The latest information about MySQL is available on the web at
http://www.mysql.com
Please consult the MySQL manual section: 'Problems running mysql installdb',
and the manual section that describes problems on your OS.
Another information source is the MySQL email archive.
Please check all of the above before mailing us!
And if you do mail us, you MUST use the ./bin/mysqlbug script!
x:/usr/local/mysql admin$ mysql -h localhost -u root -p
Enter password:
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/mysql/mysql.sock' (2)
x:/usr/local/mysql admin$
I am trying to follow the directions from the mysql.com site but things just don't "seem" to be as they should be.
Sorry if this is covered on another post (can't see how it wouldn't be but I couldn't find it if it is).
Secondly I assume there is a command line command to change the /etc/hostconfig file from "MYSQL"="-YES-" to "MYSQL"="-NO-". The "MYSQLCOM=-YES-" is already there but follows the other one so can't run.
Mac 512K - MacMini(Intel) Mac OS X (10.4.8)
Mac 512K - MacMini Mac OS X (10.4.8)