- 论坛徽章:
- 1
|
今天想用wordpress建个网站,本地打开测试,提示如下:- Your PHP installation appears to be missing the MySQL extension which is required by WordPress.
复制代码 环境如下:- uname -a
- Linux Lee-RHEL5 2.6.18-194.el5 #1 SMP Tue Mar 16 21:52:39 EDT 2010 x86_64 x86_64 x86_64 GNU/Linux
复制代码- php -v
- PHP 5.3.3 (cli) (built: Aug 27 2010 10:58:15)
- Copyright (c) 1997-2010 The PHP Group
- Zend Engine v2.3.0, Copyright (c) 1998-2010 Zend Technologies
复制代码- mysql
- Welcome to the MySQL monitor. Commands end with ; or \g.
- Your MySQL connection id is 6
- Server version: 5.0.77 Source distribution
复制代码 数据库已经建好,- mysql> show databases;
- +--------------------+
- | Database |
- +--------------------+
- | information_schema |
- | mysql |
- | test |
- | wp_default |
- +--------------------+
- 4 rows in set (0.00 sec)
复制代码 wordpress版本为3.0.1,数据库也已经配置好,- // ** MySQL settings - You can get this info from your web host ** //
- /** The name of the database for WordPress */
- define('DB_NAME', 'wp_default');
- /** MySQL database username */
- define('DB_USER', '*****');
- /** MySQL database password */
- define('DB_PASSWORD', '******');
- /** MySQL hostname */
- define('DB_HOST', 'localhost');
- /** Database Charset to use in creating database tables. */
- define('DB_CHARSET', 'utf8');
- /** The Database Collate type. Don't change this if in doubt. */
- define('DB_COLLATE', '');
复制代码 google了错误信息,大家大部分都是在Windows下的,有解决的也有没解决的。不知道大家有没有碰到过这种情况,是怎么解决的?有知道的请帮忙解决一下吧,谢谢 |
|