I am running Ubuntu, and want to install MySQL, by using the .tar.gz. I have just downloaded mysql-5.1.50-linux-i686-glibc23.tar.gz, and extracted it.
I have followed the installation instructions exactly. But when I run the
scripts/mysql_install_db --user=mysql
I get this error:
BEGIN QUOTE
FATAL ERROR: Could not find mysqld
The following directories were searched:
/usr/libexec
/usr/sbin
/usr/bin
If you compiled from source, you need to run 'make install' to
copy the software into the correct location ready for operation.
If you are using a binary release, you must either be at the top
level of the extracted archive, or pass the --basedir option
pointing to that location.
END QUOTE
As suggested in the error message I do run this script from the top level of the archive.
If I supply "--basedir=/usr/local/mysql-5.1.50-linux-i686-glibc23", I get another error message:
BEGIN QUOTE
Installing MySQL system tables...
/usr/local/mysql-5.1.50-linux-i686-glibc23/bin/mysqld: Too many arguments (first extra is '–user=mysql').
Use --verbose --help to get a list of available options
100921 16:54:26 [ERROR] Aborting
100921 16:54:26 [Note] /usr/local/mysql-5.1.50-linux-i686-glibc23/bin/mysqld: Shutdown complete
Installation of system tables failed! Examine the logs in
/var/lib/mysql for more information.
You can try to start the mysqld daemon with:
shell> /usr/local/mysql-5.1.50-linux-i686-glibc23/bin/mysqld --skip-grant &
and use the command line tool /usr/local/mysql-5.1.50-linux-i686-glibc23/bin/mysql
to connect to the mysql database and look at the grant tables:
shell> /usr/local/mysql-5.1.50-linux-i686-glibc23/bin/mysql -u root mysql
mysql> show tables
Try 'mysqld --help' if you have problems with paths. Using --log
gives you a log in /var/lib/mysql that may be helpful.
Please consult the MySQL manual section
'Problems running mysql_install_db', and the manual section that
describes problems on your OS. Another information source are the
MySQL email archives available at http://lists.mysql.com/.
Please check all of the above before mailing us! And remember, if
you do mail us, you MUST use the /usr/local/mysql-5.1.50-linux-i686-glibc23/scripts/mysqlbug script!
END QUOTE
It looks to me like this script is just faulty. What is the problem and how do I get around this?
Sincerely, Thomas
I have followed the installation instructions exactly. But when I run the
scripts/mysql_install_db --user=mysql
I get this error:
BEGIN QUOTE
FATAL ERROR: Could not find mysqld
The following directories were searched:
/usr/libexec
/usr/sbin
/usr/bin
If you compiled from source, you need to run 'make install' to
copy the software into the correct location ready for operation.
If you are using a binary release, you must either be at the top
level of the extracted archive, or pass the --basedir option
pointing to that location.
END QUOTE
As suggested in the error message I do run this script from the top level of the archive.
If I supply "--basedir=/usr/local/mysql-5.1.50-linux-i686-glibc23", I get another error message:
BEGIN QUOTE
Installing MySQL system tables...
/usr/local/mysql-5.1.50-linux-i686-glibc23/bin/mysqld: Too many arguments (first extra is '–user=mysql').
Use --verbose --help to get a list of available options
100921 16:54:26 [ERROR] Aborting
100921 16:54:26 [Note] /usr/local/mysql-5.1.50-linux-i686-glibc23/bin/mysqld: Shutdown complete
Installation of system tables failed! Examine the logs in
/var/lib/mysql for more information.
You can try to start the mysqld daemon with:
shell> /usr/local/mysql-5.1.50-linux-i686-glibc23/bin/mysqld --skip-grant &
and use the command line tool /usr/local/mysql-5.1.50-linux-i686-glibc23/bin/mysql
to connect to the mysql database and look at the grant tables:
shell> /usr/local/mysql-5.1.50-linux-i686-glibc23/bin/mysql -u root mysql
mysql> show tables
Try 'mysqld --help' if you have problems with paths. Using --log
gives you a log in /var/lib/mysql that may be helpful.
Please consult the MySQL manual section
'Problems running mysql_install_db', and the manual section that
describes problems on your OS. Another information source are the
MySQL email archives available at http://lists.mysql.com/.
Please check all of the above before mailing us! And remember, if
you do mail us, you MUST use the /usr/local/mysql-5.1.50-linux-i686-glibc23/scripts/mysqlbug script!
END QUOTE
It looks to me like this script is just faulty. What is the problem and how do I get around this?
Sincerely, Thomas