你的位置:
问答吧
-> 服务器
-> 问题详情
请教,mysql编译时出错,chown: “mysql”: 无效的用 户
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
作者: ldd600
发布时间: 2006-04-14
先在系统中创建mysql用户及组
作者: kingduanlian
发布时间: 2006-04-14
我在系统中创建了一个群组叫 mysql
一个用户hongrenldd 使他属于mysql群组
这样还是不行
继续请教
./configure --prefix=/opt/mysql --with-mysqld-user=hongrenldd --with-extra-charsets=all --with-unix-socket-path=/opt/mysql/var/mysql.sock
作者: ldd600
发布时间: 2006-04-14
useradd mysql
它找的应该就是叫mysql的用户。
作者: kingduanlian
发布时间: 2006-04-14
chown: “mysql”: 无效的用户
表明要把当前文件的所有者改变为mysql,如果系统中不存在这个用户的话,当然会出错了。
作者: kingduanlian
发布时间: 2006-04-14
好像不提示这个错误了
可是编译还是同不过 谢谢了
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
作者: ldd600
发布时间: 2006-04-14
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
这些版本该下哪一个 是不是版本下错了
作者: ldd600
发布时间: 2006-04-14
已经装上了吧,在你的Mysql目录中,执行bin/mysqld_safe &,看看能不能启动?
作者: kingduanlian
发布时间: 2006-04-14
全路径是/opt/mysql/bin/mysqld_safe &
作者: kingduanlian
发布时间: 2006-04-14
这个是自解压版 我重新下了个 src的
这个可以直接用的
作者: ldd600
发布时间: 2006-04-14