1.执行了
configure --prefix=/usr/mysql
make
make install
2.useradd -r mysql
以上步骤,一切正常。
3.但是在执行
/usr/mysql/bin/mysql_install_db时出现提示,不知道应该如何处理?
提示内容:
Installing privilege tables
To start mysqld at boot time you have to copy support-files/mysql.server
to the right place for your system
PLEASE REMEMBER TO SET A PASSWORD FOR THE MySQL root USER !
This is done with:
/usr/mysql/bin/mysqladmin -u root password 'new-password'
/usr/mysql/bin/mysqladmin -u root -h
www.rhlinux.com password 'new-password'
See the manual for more instructions.
NOTE: If you are upgrading from a MySQL <= 3.22.10 you should run
the /usr/mysql/bin/mysql_fix_privilege_tables. Otherwise you will not be
able to use the new GRANT command!
You can start the MySQL daemon with:
cd /usr/mysql ; /usr/mysql/bin/mysqld_safe &
You can test the MySQL daemon with the benchmarks in the 'sql-bench' directory:
cd sql-bench ; perl run-all-tests
Please report any problems with the /usr/mysql/bin/mysqlbug script!
The latest information about MySQL is available on the web at
http://www.mysql.com
Support MySQL by buying support/licenses at https://order.mysql.com
但是在安装目录(/usr/mysql)里没有support-files/mysql.server文件,不知道应该如何处理?
然后执行
mysqld_safe &
提示:
Starting mysqld deamon with databases from /usr/mysql/var
040921 13:34:57 mysqld ended
mysql的错误日志:
040921 12:36:03 mysqld started
Fatal error: Can't change to run as user 'mysql' ; Please check that the user exists!
040921 12:36:03 Aborting
040921 12:36:03 /usr/mysql/libexec/mysqld: Shutdown Complete
040921 12:36:03 mysqld ended
040921 13:33:15 mysqld started
040921 13:33:18 InnoDB: Operating system error number 13 in a file operation.
InnoDB: See http://www.innodb.com/ibman.html for installation help.
InnoDB: The error means mysqld does not have the access rights to
InnoDB: the directory.
InnoDB: File name ./ibdata1
InnoDB: Cannot continue operation.
040921 13:33:19 mysqld ended
040921 13:33:52 mysqld started
040921 13:33:53 InnoDB: Operating system error number 13 in a file operation.
InnoDB: See http://www.innodb.com/ibman.html for installation help.
InnoDB: The error means mysqld does not have the access rights to
InnoDB: the directory.
InnoDB: File name ./ibdata1
InnoDB: Cannot continue operation.
040921 13:33:53 mysqld ended
040921 13:34:56 mysqld started
040921 13:34:57 InnoDB: Operating system error number 13 in a file operation.
InnoDB: See http://www.innodb.com/ibman.html for installation help.
InnoDB: The error means mysqld does not have the access rights to
InnoDB: the directory.
InnoDB: File name ./ibdata1
InnoDB: Cannot continue operation.
040921 13:34:57 mysqld ended