有关 linux下mysql 二进制版 安装 运行
mysql 版本 3.23.52
linux 版本 2.4.20-8
按提示
shell> groupadd mysql
shell> useradd -g mysql mysql
shell> cd /usr/local
shell> gunzip < /path/to/mysql-VERSION-OS.tar.gz | tar xvf -
shell> ln -s mysql-VERSION-OS mysql
shell> cd mysql
shell> scripts/mysql_install_db
shell> chown -R root /usr/local/mysql
shell> chown -R mysql /usr/local/mysql/data
shell> chgrp -R mysql /usr/local/mysql
shell> chown -R root /usr/local/mysql/bin
shell> bin/safe_mysqld --user=mysql &
运行后显示
Starting mysqld daemon with databases from /usr/local/mysql/data
040329 17:14:40 mysqld ended
察看错误纪录显示
040329 17:14:40 mysqld started
Fatal error: Can't change to run as user 'mysql' ; Please check that the user exists!
040329 17:14:40 Aborting
040329 17:14:40 /usr/local/mysql/bin/mysqld: Shutdown Complete
040329 17:14:40 mysqld ended