LinuxSir.cn,穿越时空的Linuxsir!

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

请教,mysql编译时出错,chown: “mysql”: 无效的用 户

[复制链接]
发表于 2006-4-14 10:55:59 | 显示全部楼层 |阅读模式
chown: “mysql”: 无效的用 户
Starting mysqld daemon with databases from /opt/mysql-max-5.0.20-linux-i686-glib c23/data
STOPPING server from pid file /opt/mysql-max-5.0.20-linux-i686-glibc23/data/ldd6 00-hust.pid


用的是 ./configure --prefix=/opt/mysql --with-mysqld-user=root --with-extra-charsets=all --with-unix-socket-path=/opt/mysql/var/mysql.sock
发表于 2006-4-14 10:57:15 | 显示全部楼层
先在系统中创建mysql用户及组
回复 支持 反对

使用道具 举报

 楼主| 发表于 2006-4-14 11:06:44 | 显示全部楼层
我在系统中创建了一个群组叫 mysql
一个用户hongrenldd 使他属于mysql群组
这样还是不行
继续请教
./configure --prefix=/opt/mysql --with-mysqld-user=hongrenldd --with-extra-charsets=all --with-unix-socket-path=/opt/mysql/var/mysql.sock
回复 支持 反对

使用道具 举报

发表于 2006-4-14 11:38:57 | 显示全部楼层
useradd mysql
它找的应该就是叫mysql的用户。
回复 支持 反对

使用道具 举报

发表于 2006-4-14 11:40:12 | 显示全部楼层
chown: “mysql”: 无效的用户
表明要把当前文件的所有者改变为mysql,如果系统中不存在这个用户的话,当然会出错了。
回复 支持 反对

使用道具 举报

 楼主| 发表于 2006-4-14 11:56:25 | 显示全部楼层
好像不提示这个错误了
可是编译还是同不过  谢谢了
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 ldd600-hust 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@ldd600-hust mysql-max-5.0.20-linux-i686-glibc23]# Starting mysqld daemon with databases from /usr/local/mysql-max-5.0.20 -linux-i686-glibc23/data
STOPPING server from pid file /usr/local/mysql-max-5.0.20-linux-i686-glibc23/data/ldd600-hust.pid
060414 11:54:12  mysqld ended
回复 支持 反对

使用道具 举报

 楼主| 发表于 2006-4-14 12:25:15 | 显示全部楼层
Linux (x86, glibc-2.2, "standard" is static, gcc)        Standard        5.0.20        30.3M        Download | Pick a mirror
MD5: 5b0471380db88b03267bbabde500b7e0 | Signature
        Max        5.0.20        38.7M        Download | Pick a mirror
MD5: 8c2c3d2d5bfc11155bc4b9f695e0f369 | Signature
        Debug        5.0.20        62.4M        Download | Pick a mirror
MD5: 9224a8881a73168a93fe6a29bac5f4fe | Signature
Linux (x86)        Standard        5.0.20        26.0M        Download | Pick a mirror
MD5: a5075ebda53a02f860fc4b233c51b387 | Signature
        Max        5.0.20        39.1M        Download | Pick a mirror
MD5: ea660546d861f4f222c999f4c170db3f | Signature
        Debug        5.0.20        41.0M        Download | Pick a mirror

这些版本该下哪一个 是不是版本下错了
回复 支持 反对

使用道具 举报

发表于 2006-4-14 13:25:34 | 显示全部楼层
已经装上了吧,在你的Mysql目录中,执行bin/mysqld_safe &,看看能不能启动?
回复 支持 反对

使用道具 举报

发表于 2006-4-14 13:29:09 | 显示全部楼层
全路径是/opt/mysql/bin/mysqld_safe &
回复 支持 反对

使用道具 举报

 楼主| 发表于 2006-4-14 15:19:00 | 显示全部楼层
这个是自解压版   我重新下了个 src的
这个可以直接用的
回复 支持 反对

使用道具 举报

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

本版积分规则

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