免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 932 | 回复: 6

mysql启动问题,谢谢大家 [复制链接]

论坛徽章:
0
发表于 2004-09-15 12:27 |显示全部楼层
solaris9安装了mysql二进制,按照下面步骤:
创建
#groupadd mysql
# useradd -g mysql mysql

gunzip
tar
解压完成
# cd mysql-standard-4.1.3-beta-pc-solaris2.8-i386
# scripts/mysql_install_db
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 fw365 password 'new-password'
See the manual for more instructions.

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

好像一切正常吧?
接下来:
chown -R root ..../mysql
# chown -R mysql ......./mysql/data
# chgrp -R mysql ......./mysql
# chown -R root ........./mysql/bin
也一切正常,但是如何启动?
用# ./safe_mysqld &
不行;
用bin/safe_mysqld --user=mysql &
也不行清
咋回事啊?救命啊~~~

论坛徽章:
0
发表于 2004-09-15 12:38 |显示全部楼层

mysql启动问题,谢谢大家

你的mysql的用户建立有问题吧,useradd后面就那么简单可以吗?我没有装过这个,但是oracle比这个要复杂一些

论坛徽章:
0
发表于 2004-09-15 12:44 |显示全部楼层

mysql启动问题,谢谢大家

[quote]原帖由 "metor78"]你的mysql的用户建立有问题吧,useradd后面就那么简单可以吗?我没有装过这个,但是oracle比这个要复杂一些[/quote 发表:


用户没啥问题吧?偶以前也装过oracle,对着这里的精华文章装的,一次搞定
但这次却.......


刚才又用如下命令启动了一下,有如下提示:
# ./bin/mysqld_safe &
14348
# Starting mysqld daemon with databases from /export/home0/mysql-standard-4.1.3-
beta-pc-solaris2.8-i386/data
040915 12:07:25  mysqld ended

可是用mysql -h192.168.0.66 -uroot -p却登不上去!
ps:偶对solaris知之甚少,只会用一些基本命令~~~~~~~~

论坛徽章:
0
发表于 2004-09-15 13:11 |显示全部楼层

mysql启动问题,谢谢大家

看myswl/var里的error日志

论坛徽章:
0
发表于 2004-09-15 13:20 |显示全部楼层

mysql启动问题,谢谢大家

[quote]原帖由 "南非蜘蛛"]看myswl/var里的error日志[/quote 发表:


myswl/var在哪个目录下下啊,find找不着啊?谢谢板斧

论坛徽章:
0
发表于 2004-09-15 13:22 |显示全部楼层

mysql启动问题,谢谢大家

/usr/local/mysql/var里的error日志

论坛徽章:
0
发表于 2004-09-15 13:40 |显示全部楼层

mysql启动问题,谢谢大家

原帖由 "bladerain" 发表:


myswl/var在哪个目录下下啊,find找不着啊?谢谢板斧


弄好了,谢谢各位
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

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

清除 Cookies - ChinaUnix - Archiver - WAP - TOP