免费注册 查看新帖 |

Chinaunix

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

Fedora 10 mysql 安装问题? [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2009-05-17 08:15 |只看该作者 |倒序浏览
安装 mysql 包: mysql-5.1.34-linux-i686-glibc23.tar.gz

安装完成后, 可以 登录到 mysql
Welcome to the MySQL monitor.  Commands end with ; or \g.
Your MySQL connection id is 15
Server version: 5.1.34 MySQL Community Server (GPL)

Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.

mysql>

(应该是安装成功了...)

但是我现在想把mysql 服务 加到系统里面。
使用 chkconfig --add mysql
error reading information on service mysql: No such file or directory

在 /etc/rc.d/init.d   /etc/init.d/ 中 也没有 mysql. 应该怎么办呢?

service --status-all  输出也没有 mysql.

netstat -nat   输出可以看到
Proto Recv-Q Send-Q Local Address               Foreign Address             State
tcp        0      0 0.0.0.0:3306                0.0.0.0:*                   LISTEN

请大家 高数我,谢谢了。

论坛徽章:
381
CU十二周年纪念徽章
日期:2014-01-04 22:46:58CU大牛徽章
日期:2013-03-13 15:32:35CU大牛徽章
日期:2013-03-13 15:38:15CU大牛徽章
日期:2013-03-13 15:38:52CU大牛徽章
日期:2013-03-14 14:08:55CU大牛徽章
日期:2013-04-17 11:17:19CU大牛徽章
日期:2013-04-17 11:17:32CU大牛徽章
日期:2013-04-17 11:17:37CU大牛徽章
日期:2013-04-17 11:17:42CU大牛徽章
日期:2013-04-17 11:17:47CU大牛徽章
日期:2013-04-17 11:17:52CU大牛徽章
日期:2013-04-17 11:17:56
2 [报告]
发表于 2009-05-17 08:24 |只看该作者
chkconfig --add mysqld

论坛徽章:
0
3 [报告]
发表于 2009-05-17 08:44 |只看该作者
cp support-files/mysql.server /etc/rc.d/init.d/mysqld
chmod 700 /etc/rc.d/init.d/mysqld
chkconfig --add mysqld
chmod +x /etc/rc.d/init.d/mysqld

论坛徽章:
0
4 [报告]
发表于 2009-05-17 08:44 |只看该作者
要经常使用tab,mysql的服务是mysqld.

论坛徽章:
0
5 [报告]
发表于 2009-05-17 09:03 |只看该作者
谢谢大家 特别是 loveradmin 我按照你的操作已经 可以添加了。
[root@localhost mysqld]# service --status-all
MySQL is running but PID file could not be found           [FAILED]

我查看了 /etc/rc.d/init.d/mysqld 文件
发现
pid_file=
server_pid_file=
请问怎么改呢 ?

论坛徽章:
0
6 [报告]
发表于 2009-05-17 18:08 |只看该作者
MySQL is running but PID file could not be found
检查/etc/my.cnf下的pid目录在哪,如果有设置logdir可在
tail -f 进行查看详细的错误日志进行处理。

论坛徽章:
0
7 [报告]
发表于 2009-05-17 18:35 |只看该作者
为什么不用yum安装?
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

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

清除 Cookies - ChinaUnix - Archiver - WAP - TOP