<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>系统运维 &#187; MySQL数据库无法启动</title>
	<atom:link href="http://www.osyunwei.com/archives/tag/mysql%E6%95%B0%E6%8D%AE%E5%BA%93%E6%97%A0%E6%B3%95%E5%90%AF%E5%8A%A8/feed" rel="self" type="application/rss+xml" />
	<link>https://www.osyunwei.com</link>
	<description>国产化OS/AnolisOS/openEuler/RHEL/CentOS/Rocky Linux/Debian/Ubuntu Linux FreeBSD 服务器教程 &#124; Windows Server 2003/2008/2012/2016/2019/2022/2025服务器教程</description>
	<lastBuildDate>Tue, 14 Apr 2026 10:59:22 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Linux下MySQL数据库yum升级后无法启动解决办法</title>
		<link>https://www.osyunwei.com/archives/5103.html</link>
		<comments>https://www.osyunwei.com/archives/5103.html#comments</comments>
		<pubDate>Wed, 15 Aug 2012 14:38:07 +0000</pubDate>
		<dc:creator>qihang01</dc:creator>
				<category><![CDATA[MySQL]]></category>
		<category><![CDATA[mysql]]></category>
		<category><![CDATA[MySQL数据库无法启动]]></category>

		<guid isPermaLink="false">http://www.osyunwei.com/?p=5103</guid>
		<description><![CDATA[说明： 操作系统：CentOS 5.8 Web运行环境：Apache+MySQL+PHP（全部使用yum命令在线安装） Apache版本：2.2.3 MySQL版本：5.0.95 PHP版本：5.1.6 由于php版本太低，采用第三方yum源升级到php-5.2.17 MySQL数据库路径由默认的/var/lib/mysql目录修改为/data/mysql_data/mysql目录 系统运维 www.osyunwei.com 温馨提醒：qihang01原创内容版权所有,转载请注明出处及原文链 网站运行正常 修改： php程序要连接sql server 2000数据库，服务器必须安装php-mssql扩展包，系统默认的php-mssql的版本为：php-mssql-5.1.6，与php-5.2.17版本不兼容，必须安装php-mssql-5.2.17才能与php-5.2.17兼容，故采用第三方yum源来安装php-mssql wget http://www.atomicorp.com/installers/atomic  #下载 sh ./atomic   #安装第三方yum源 yum install php-mssql #安装，提示输入y，直到安装完成 注意：由于第三方yum源里面的软件包均为目前最新版，在安装php-mssql的同时，自动把MySQL、PHP版本也升级到了目前最新版。 service  httpd restart  #重启apache，启动正常 service  mysqld restart  #重启MySQL，启动失败 mysql -u root -p   #进入MySQL控制台，输入密码后，出现错误，如下图所示 系统运维 www.osyunwei.com 温馨提醒：qihang01原创内容版权所有,转载请注明出处及原文链 碰到问题：MySQL版本由之前的5.0.95升级到5.5.27后，无法启动 原因： 1、MySQL升级之后，由于配置文件/etc/my.cnf还是原来5.0.95的，对5.5.27已经不适用了，所以出错 2、MySQL升级之前修改过数据库默认存放路径，升级之后数据库路径又被还原到默认位置，所以出错 解决办法： 1、用MySQL-5.5.27的配置文件替换原来的/etc/my.cnf 2、修改MySQL数据库路径为/data/mysql_data/mysql目录 具体操作： 1、cd  /usr/share/mysql   #进入MySQL目录 [...]<p><a rel="bookmark" href="https://www.osyunwei.com/archives/5103.html" target="_blank">查看全文</a></p>]]></description>
		<wfw:commentRss>https://www.osyunwei.com/archives/5103.html/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
