免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
12下一页
最近访问板块 发新帖
查看: 4694 | 回复: 18
打印 上一主题 下一主题

安装mysql出错 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2008-08-22 17:45 |只看该作者 |倒序浏览
安装MYSQL的,我用的是tar包。

我用的是rhel5

以下是命令步骤:
•解压mysql5 的安装包:tar –zxvf mysql-5.0.16.tar.gz
•进入解压后的安装包: cd mysql-5.0.16
•配置:
./configure
--prefix=/opt/mysql
--with-extra-charsets=all
--with-unix-socket-path=/opt/mysql/var/mysql.sock
•make
•make install
•复制配置文件到/etc下
cp /opt/mysql/share/mysql/my-medium.cnf /etc/my.cnf
•运行:./opt/mysql/bin/mysql_install_db
这个命令是创建MySQL的授权表.


在执行到•运行:./opt/mysql/bin/mysql_install_db的时候出错

错误信息如下:

[root@localhost bin]# ./mysql_install_db
Installing MySQL system tables...
080822 17:38:47 [Warning] option 'max_join_size': unsigned value 18446744073709551615 adjusted to 4294967295
080822 17:38:47 [Warning] option 'max_join_size': unsigned value 18446744073709551615 adjusted to 4294967295
OK
Filling help tables...
080822 17:38:48 [Warning] option 'max_join_size': unsigned value 18446744073709551615 adjusted to 4294967295
080822 17:38:48 [Warning] option 'max_join_size': unsigned value 18446744073709551615 adjusted to 4294967295
OK

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:
/opt/mysql/bin/mysqladmin -u root password 'new-password'
/opt/mysql/bin/mysqladmin -u root -h localhost.localdomain password 'new-password'

Alternatively you can run:
/opt/mysql/bin/mysql_secure_installation

which will also give you the option of removing the test
databases and anonymous user created by default.  This is
strongly recommended for production servers.

See the manual for more instructions.

You can start the MySQL daemon with:
cd /opt/mysql ; /opt/mysql/bin/mysqld_safe &

You can test the MySQL daemon with mysql-test-run.pl
cd mysql-test ; perl mysql-test-run.pl

Please report any problems with the /opt/mysql/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 http://shop.mysql.com\


无法执行:

chown -R mysql : mysql /opt/mysql/var

错误提示如下:

chown: “mysql”: 无效的用户


无法启动mysql

错误提示如下:
[root@localhost mysql]# ./mysql.server start
Starting MySQL.Manager of pid-file quit without updating fi[失败]
[root@localhost mysql]#

论坛徽章:
0
2 [报告]
发表于 2008-08-22 17:52 |只看该作者
chown -R mysql:mysql /opt/mysql/var


mysql存在?
mysql:mysql    分号两端没空格试试!

论坛徽章:
1
寅虎
日期:2015-01-23 02:35:47
3 [报告]
发表于 2008-08-22 18:23 |只看该作者
原帖由 志国 于 2008-8-22 17:52 发表
chown -R mysql:mysql /opt/mysql/var


mysql存在?
mysql:mysql    分号两端没空格试试!


那叫冒号

论坛徽章:
0
4 [报告]
发表于 2008-08-22 19:56 |只看该作者
原帖由 cuci 于 2008-8-22 18:23 发表


那叫冒号


^_^大脑缺养了。






楼下的,你得回复吓我一跳。我的意思是我大脑缺氧!说成分号了!

[ 本帖最后由 志国 于 2008-8-22 21:05 编辑 ]

论坛徽章:
0
5 [报告]
发表于 2008-08-22 20:13 |只看该作者
原帖由 志国 于 2008-8-22 19:56 发表


^_^大脑缺养了。


哈哈哈哈,那不叫冒号叫啥?

论坛徽章:
0
6 [报告]
发表于 2008-08-22 20:15 |只看该作者
都提示没有mysql这个用户了。。。。

晕死了。。。。再试也没用的。

两边没有空格就这样了:
chmod:无效选项 -- m
请尝试执行“chmod --help”来获取更多信息。

论坛徽章:
0
7 [报告]
发表于 2008-08-22 20:31 |只看该作者
神拉,救救我吧


我该怎么办呀?

论坛徽章:
0
8 [报告]
发表于 2008-08-22 20:31 |只看该作者
原帖由 kaiwenli 于 2008-8-22 20:15 发表
都提示没有mysql这个用户了。。。。

晕死了。。。。再试也没用的。

两边没有空格就这样了:
chmod:无效选项 -- m
请尝试执行“chmod --help”来获取更多信息。

呵呵,没有这个用户就创建一个吧。
一路征程一路笑 该用户已被删除
9 [报告]
发表于 2008-08-22 20:36 |只看该作者
提示: 作者被禁止或删除 内容自动屏蔽

论坛徽章:
0
10 [报告]
发表于 2008-08-22 20:52 |只看该作者
我还是比较喜欢源码包。。。。。

觉得这个比较有挑战。。。。

mysql用户和mysql是make和make install自动创建的吧?
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP