LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 908|回复: 7

用源码包安装mysql-max-4.1.14-pc-linux-gnu-i686.tar.gz出错!!

[复制链接]
发表于 2005-11-4 00:08:54 | 显示全部楼层 |阅读模式
在root上运行
[root@linuxsir01 mysql-4.0.16]#
./configure --prefix=/opt/mysql --with-mysqld-user=beinan --with-extra-charsets=all --with-unix-socket-path=/opt/mysql/var/mysql.sock
后出错,系统提示说‘mysql'无效用户名!!

我是看 用源码包安装php-4.34+mysql-4.0.16+apache-2.0.48+vbb-2.32实践总结 http://www.linuxsir.cn/forum.php?mod=viewthread&tid=77079 ,到安装mysql的步骤就出错的! :help
 楼主| 发表于 2005-11-4 17:38:33 | 显示全部楼层
编译MYSQL的时候出现错误,不知道为什么??请教!

[root@seebook mysql-max-4.1.14-i686]# ./configure --prefix=/opt/mysql --with-mysqld-user=beinan --with-extra-charsets=all --with-unix-socket-path=/opt/mysql/var/mysql.sock
NOTE: This is a MySQL binary distribution. It's ready to run, you don't
need to configure it!

To help you a bit, I am now going to create the needed MySQL databases
and start the MySQL server for you.  If you run into any trouble, please
consult the MySQL manual, that you can find in the Docs directory.

Installing all prepared tables
Fill help 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 !
To do so, start the server, then issue the following commands:
./bin/mysqladmin -u root password 'new-password'
./bin/mysqladmin -u root -h seebook password 'new-password'
See the manual for more instructions.

NOTE:  If you are upgrading from a MySQL <= 3.22.10 you should run
the ./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 . ; ./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 ./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
Starting the mysqld server.  You can test that it is up and running
with the command:
./bin/mysqladmin version
[root@seebook mysql-max-4.1.14-i686]# chown: ‘mysql’: 无效的用户
Starting mysqld daemon with databases from /profile/mysql-max-4.1.14-i686/data
STOPPING server from pid file /profile/mysql-max-4.1.14-i686/data/seebook.pid
051105 02:09:56  mysqld ended
回复 支持 反对

使用道具 举报

 楼主| 发表于 2005-11-6 01:29:06 | 显示全部楼层
添加mysql用户后还是不行,运行安装程序提示如下:

root@seebook mysql-max-5.0.15-linux-i686]# ./configure --prefix=/opt/mysql --with-mysqld-user=ysm --with-extra-charsets=all --with-unix-socket-path=/opt/mysql/var/mysql.sock
NOTE: This is a MySQL binary distribution. It's ready to run, you don't
need to configure it!

To help you a bit, I am now going to create the needed MySQL databases
and start the MySQL server for you. If you run into any trouble, please
consult the MySQL manual, that you can find in the Docs directory.

Installing all prepared tables
Fill help 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 !
To do so, start the server, then issue the following commands:
./bin/mysqladmin -u root password 'new-password'
./bin/mysqladmin -u root -h seebook password 'new-password'
See the manual for more instructions.

NOTE: If you are upgrading from a MySQL <= 3.22.10 you should run
the ./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 . ; ./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 ./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
Starting the mysqld server. You can test that it is up and running
with the command:
./bin/mysqladmin version
[root@seebook mysql-max-5.0.15-linux-i686]# Starting mysqld daemon with databases from /profile/mysql-max-5.0.15-linux-i686/data
STOPPING server from pid file /profile/mysql-max-5.0.15-linux-i686/data/seebook.pid
051106 01:22:54 mysqld ended
回复 支持 反对

使用道具 举报

发表于 2005-11-6 03:34:37 | 显示全部楼层
--with-mysqld-user=ysm

你总是指定这个,,会不会是这个的问题?
回复 支持 反对

使用道具 举报

发表于 2005-11-6 08:43:55 | 显示全部楼层
mysql-max-4.1.14-pc-linux-gnu-i686.tar.gz 是二进制包,不是源码包
回复 支持 反对

使用道具 举报

 楼主| 发表于 2005-11-6 10:35:56 | 显示全部楼层
Post by 黯然销魂
--with-mysqld-user=ysm

你总是指定这个,,会不会是这个的问题?




root@linuxsir01 mysql-4.0.16]#
./configure --prefix=/opt/mysql

也不行
回复 支持 反对

使用道具 举报

发表于 2005-11-6 10:54:17 | 显示全部楼层
我装MYSQL没100遍可能有点夸张,80遍足有了.
就从来没有这么麻烦过.
你看看他那个INSTALL.txt
回复 支持 反对

使用道具 举报

 楼主| 发表于 2005-11-6 11:58:13 | 显示全部楼层
Post by Yuri
我装MYSQL没100遍可能有点夸张,80遍足有了.
就从来没有这么麻烦过.
你看看他那个INSTALL.txt


看了,也试了N遍,还不行,现在改用PostgreSQL了,初步判断安装PostgreSQL+apache+php+phpbb已经成功,在安装phpbb的地方又碰到了问题!!   
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表