免费注册 查看新帖 |

Chinaunix

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

花钱买你帮我把mysql服务 启动起来~~~已结 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2009-12-08 23:03 |只看该作者 |倒序浏览
(已结贴  最后查出因为磁盘空间满了的问题)

具体是这样的..

linux系统版本是 redhat enterprise 3 的版本

mysql 的版本安装的是 MySQL-server-community-5.0.88-0.rhel3.i386.rpm

安装完成以后 在/etc/init.d/mysql start的时候 显示

Starting MySQL.Manager of pid-file quit without updating fi[失败]


PS:

这个系统我是半路接手的 我拿到的时候 里面的mysql已经坏了... 根据之前的人说 mysql是安装在

/usr/local/mysql里的

然后我吧这个文件删掉了...

find 了一下和mysql 有关的文件 都删了...

然后才装的 MySQL-server-community-5.0.88-0.rhel3.i386.rpm  可是启动的时候 就是起不来了...

google了一下 也用过里面的一些 可是就是还是起不来..

另外 我rpm -q mysql 说是找不到安装的


QQ : 270127042  花钱买你帮我把mysql 启动起来

[ 本帖最后由 270127042 于 2009-12-9 14:24 编辑 ]

论坛徽章:
0
2 [报告]
发表于 2009-12-09 08:46 |只看该作者
这也行啊,太强了,这贴别让大家看见,抢破头的。

启动mysql方法:
1、 cp /var/lib/mysql /var/lib/mysql_bak
2、 rpm -ivh MySQL-server-community-5.0.88-0.rhel3.i386.rpm --force
3、 rm -f  /var/run/mysqld/mysqld.pid
4、 /etc/init.d/mysql  start

启动不了就贴日志。

[ 本帖最后由 xinyv 于 2009-12-9 08:50 编辑 ]

论坛徽章:
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
3 [报告]
发表于 2009-12-09 08:53 |只看该作者

论坛徽章:
34
亥猪
日期:2015-03-20 13:55:11戌狗
日期:2015-03-20 13:57:01酉鸡
日期:2015-03-20 14:03:56未羊
日期:2015-03-20 14:18:30子鼠
日期:2015-03-20 14:20:14丑牛
日期:2015-03-20 14:20:31辰龙
日期:2015-03-20 14:35:34巳蛇
日期:2015-03-20 14:35:56操作系统版块每日发帖之星
日期:2015-11-06 06:20:00操作系统版块每日发帖之星
日期:2015-11-08 06:20:00操作系统版块每日发帖之星
日期:2015-11-19 06:20:00黄金圣斗士
日期:2015-11-24 10:43:13
4 [报告]
发表于 2009-12-09 09:37 |只看该作者
mysql-server 不止这一包吧,最好不要用 -f 装,依赖解决不了麻烦。

rpm -qa|grep mysql 就可以看见了~

其实重新下个源码的也很快啊。

论坛徽章:
0
5 [报告]
发表于 2009-12-09 09:53 |只看该作者

回复 #2 xinyv 的帖子

1、 cp /var/lib/mysql /var/lib/mysql_bak
我执行这个 说是cp: 略过目录‘/var/lib/mysql’

2、 rpm -ivh MySQL-server-community-5.0.88-0.rhel3.i386.rpm --force
我执行这个 结果出这个错误

  1. warning: MySQL-server-community-5.0.88-0.rhel3.i386.rpm: V3 DSA signature: NOKEY, key ID 5072e1f5
  2. Preparing...                ########################################### [100%]

  3. ******************************************************************
  4. A MySQL server package (MySQL-server-community-5.1.41-0.rhel3) is installed.

  5. Upgrading directly from MySQL 5.1 to MySQL 5.0 may not
  6. be safe in all cases.  A manual dump and restore using mysqldump is
  7. recommended.  It is important to review the MySQL manual's Upgrading
  8. section for version-specific incompatibilities.

  9. A manual upgrade is required.

  10. - Ensure that you have a complete, working backup of your data and my.cnf
  11.   files
  12. - Shut down the MySQL server cleanly
  13. - Remove the existing MySQL packages.  Usually this command will
  14.   list the packages you should remove:
  15.   rpm -qa | grep -i '^mysql-'

  16.   You may choose to use 'rpm --nodeps -ev <package-name>' to remove
  17.   the package which contains the mysqlclient shared library.  The
  18.   library will be reinstalled by the MySQL-shared-compat package.
  19. - Install the new MySQL packages supplied by Sun Microsystems, Inc.
  20. - Ensure that the MySQL server is started
  21. - Run the 'mysql_upgrade' program

  22. This is a brief description of the upgrade process.  Important details
  23. can be found in the MySQL manual, in the Upgrading section.
  24. ******************************************************************
  25. error: %pre(MySQL-server-community-5.0.88-0.rhel3) scriptlet failed, exit status 1
  26. error:   install: %pre scriptlet failed (2), skipping MySQL-server-community-5.0.88-0.rhel3

复制代码


3、 rm -f  /var/run/mysqld/mysqld.pid
run 下没有 mysqld 这个目录




/var/log/  这个目录下没有 mysqld.log

/etc/my.cnf 里的 log-bin=mysql-bin

可是找不到哎~~~~

神~~ 日志在哪个目录下..... 顺便贴出来你QQ

[ 本帖最后由 270127042 于 2009-12-9 10:03 编辑 ]

论坛徽章:
0
6 [报告]
发表于 2009-12-09 10:00 |只看该作者

回复 #3 chenyx 的帖子

谢谢哥们

可是

我的 my.cnf 里 没有 skip-federated 这个东西

论坛徽章:
34
亥猪
日期:2015-03-20 13:55:11戌狗
日期:2015-03-20 13:57:01酉鸡
日期:2015-03-20 14:03:56未羊
日期:2015-03-20 14:18:30子鼠
日期:2015-03-20 14:20:14丑牛
日期:2015-03-20 14:20:31辰龙
日期:2015-03-20 14:35:34巳蛇
日期:2015-03-20 14:35:56操作系统版块每日发帖之星
日期:2015-11-06 06:20:00操作系统版块每日发帖之星
日期:2015-11-08 06:20:00操作系统版块每日发帖之星
日期:2015-11-19 06:20:00黄金圣斗士
日期:2015-11-24 10:43:13
7 [报告]
发表于 2009-12-09 10:48 |只看该作者

回复 #5 270127042 的帖子

已经装上了 ,用 rpm -qa | grep -i '^mysql-' 查看。
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

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

清除 Cookies - ChinaUnix - Archiver - WAP - TOP