试试:1. groupadd mysql
2. useradd -g mysql mysql //添加一个Linux用户
3. cd /mysqlpath
4. chown -R root .
5. chown -R mysql data
6. chgrp -R mysql .然后运行mysql服务
2. useradd -g mysql mysql //添加一个Linux用户
3. cd /mysqlpath
4. chown -R root .
5. chown -R mysql data
6. chgrp -R mysql .然后运行mysql服务
没看清错误原因,你只要贴错误的提示就好了。
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 full-path-to-mysql-VERSION-OS mysql
shell> cd mysql
shell> scripts/mysql_install_db
shell> chown -R root .
shell> chown -R mysql data
shell> chgrp -R mysql .
shell> bin/mysqld_safe --user=mysql &
bash: groupadd: command not found
?????
谢谢各位帮我解决.
bin/mysqld_safe --user=mysql & 这步时都出现以下提示:[1] 1790
[root@localhost mysql-standard-4.0.15-pc-linux-i686]# Starting mysqld daemon with databases from /var/lib/mysql
031007 23:12:52 mysqld ended
去掉这行显示:
............
You can start the MySQL daemon with:
cd . ; ./bin/mysqld_safe &You can test the MySQL daemon with the benchs in the 'sql-bench' directory:
cd sql-bench ; perl run-all-testsPlease report any problems with the ./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.comStarting the mysqld server. You can test that it is up and running
with the command:
./bin/mysqladmin version
[root@localhost mysql-standard-4.0.15-pc-linux-i686]# Starting mysqld daemon with databases from /var/lib/mysql
031007 23:10:40 mysqld ended