List:General Discussion« Previous MessageNext Message »
From:Michael Widenius Date:September 17 1999 11:28pm
Subject:pb installation MySql on Linux - step "scripts/mysql_install_db"
View as plain text  
>>>>> "Herve" == Herve Leygonie <h.leygonie@stripped> writes:

Herve> Description:
Herve> 	I want to install mysql on a linux system and followed exactly the steps
> indicated in the "MySql Reference Manual".
Herve> 	The first three steps are OK: 
Herve> 		configure
Herve> 		make
Herve> 		make install
Herve> 	the fourth ("scripts/mysql_install_db") doesn't work.

Herve> 	I did all the installation whith user root, so the pb doesn't come from
> rights.

Herve> How-To-Repeat:
Herve> this is the message after typing "scripts/mysql_install_db".

Herve> 	[root mysql-3.22.26a]# ./scripts/mysql_install_db
Herve> 	Creating db table
Herve> 	Creating host table
Herve> 	Creating user table
Herve> 	Creating func table
Herve> 	Creating tables_priv table
Herve> 	Creating columns_priv table
Herve> 	Installation of grant tables failed!

Herve> 	Examine the logs in /usr/local/mysql/var for more information.
Herve> 	You can also try to start the mysqld demon with:
Herve> 	/usr/local/mysql/libexec/mysqld --skip-grant &
Herve> 	You can use the command line tool
Herve> 	/usr/local/mysql/bin/mysql to connect to the mysql
Herve> 	database and look at the grant tables:
shell> /usr/local/mysql/bin/mysql -u root mysql
mysql> show tables

<cut>

Sorry about that;  I thought that this was fixed in 3.22.26 :(

From configure, remove the 'big files test':

# Big file support ? (Solaris 2.6 style)
# This may have to be commented on Relient (Siemens) unix
echo $ac_n "checking "for Sun style big file support"""... $ac_c" 1>&6
echo "configure:4890: checking "for Sun style big file support"" >&5
LFS_CFLAGS=`getconf LFS_CFLAGS 2>/dev/null`
if test $? = 0 -a "$SYSTEM_TYPE" != "sni-sysv4"
then
  CFLAGS="$CFLAGS $LFS_CFLAGS"
  CXXFLAGS="$CXXFLAGS $LFS_CFLAGS"
  #
  LFS_LDFLAGS=`getconf LFS_LDFLAGS`
  LDFLAGS="$LDFLAGS $LFS_LDFLAGS"
  #
  LFS_LIBS=`getconf LFS_LIBS`
  LIBS="$LIBS $LFS_LIBS"
  echo "$ac_t"""Found. Using C $LFS_CFLAGS LD $LFS_LDFLAGS LIB $LFS_LIBS"" 1>&6
else
  echo "$ac_t"""No"" 1>&6
fi

and then do:

make clean
./configure ....
make
make install
scripts/mysql_install_db

Regards,
Monty
Thread
pb installation MySql on Linux - step "scripts/mysql_install_db"Herve Leygonie16 Sep
  • pb installation MySql on Linux - step "scripts/mysql_install_db"Michael Widenius18 Sep