---
title: "安装UCenter过程中“不支持Mysql数据库”的解决方法"
author: "mmdev"
date: "2009-12-02T16:05:00Z"
tags: []
slug: "ucenter-mysql"
draft: false
lastmod: "2012-03-28T22:16:50Z"
id: 1467536
url: "https://mmdev.iteye.com/blog/1467536"
---

按照官方提供的“[UCenter 1.5.0 安装图文教程](http://faq.comsenz.com/viewnews-449)”，我开始装上php5,mysql5,apache2.2，结果在[http://127.0.0.1/ucenter/install/index.php](http://127.0.0.1/ucenter/install/index.php)时遇到了令人郁闷的一刻，  
![](http://p.blog.csdn.net/images/p_blog_csdn_net/changemyself/EntryImages/20091202/uncenter-mysql.jpg)  
查查资料一看，有很多朋友都遇到类似情况，而且问的帖子到现在还没有给回，心理纳闷呀，为啥Ucenter的提供公司“康盛创想”的开发人员不出来给解答一下呢，毕竟大家都是用了你的产品才发的帖子呀，没办法，结合网上的帖子，最终花了15分钟解决了mysql的问题，现将方法公布如下(针对windows)：

1、找到php的ext目录下的php\_mysql.dll和php根目录下的libmysql.dll，将这两文件copy至在windows系统的system32中  
2、php根目录下的php.ini文件中，没有将“;extension=php\_mysql.dll”中的前面一个“;”去掉；

3、重启apache后，就OK了。

![](http://p.blog.csdn.net/images/p_blog_csdn_net/changemyself/EntryImages/20091202/uncenter-mysql-ok.jpg)  
填入数据库等相关信息后，继续安装，如下  
![](http://p.blog.csdn.net/images/p_blog_csdn_net/changemyself/EntryImages/20091202/uncenter-mysql-ok-1.jpg)