当前位置: 技术问答>linux和unix
有关 linux下mysql 二进制版 安装 运行
来源: 互联网 发布时间:2015-06-26
本文导语: mysql 版本 3.23.52 linux 版本 2.4.20-8 按提示 shell> groupadd mysql shell> useradd -g mysql mysql shell> cd /usr/local shell> gunzip ln -s mysql-VERSION-OS mysql shell> cd mysql shell> scripts/mysql_install...
mysql 版本 3.23.52
linux 版本 2.4.20-8
按提示
shell> groupadd mysql
shell> useradd -g mysql mysql
shell> cd /usr/local
shell> gunzip 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
linux 版本 2.4.20-8
按提示
shell> groupadd mysql
shell> useradd -g mysql mysql
shell> cd /usr/local
shell> gunzip 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
|
我一般安装mysql 是这样的:
tar zxf mysql-xxx.tar.gz
cd mysql-xxx
configure --prefix=/usr/local/mysql --enable-debug ..............
make ;make install
然后添加用户,赋权限
然后 bin/safe_mysqld --user=mysql &
tar zxf mysql-xxx.tar.gz
cd mysql-xxx
configure --prefix=/usr/local/mysql --enable-debug ..............
make ;make install
然后添加用户,赋权限
然后 bin/safe_mysqld --user=mysql &
|
Fatal error: Can't change to run as user 'mysql' ; Please check that the user exists!
提示是mysql 用户不存在
所以shell> bin/safe_mysqld --user=mysql & 失败
先增加一个用户
shell>useradd mysql
提示是mysql 用户不存在
所以shell> bin/safe_mysqld --user=mysql & 失败
先增加一个用户
shell>useradd mysql
|
mysql 4.0.16 在redhar 8.0下 像楼主装没有问题
但是3.X.X 就不是太清楚拉
会不会是目录权限的问题呢?
但是3.X.X 就不是太清楚拉
会不会是目录权限的问题呢?