嗨,我试图在XAMPP安装worpress设计和测试我的博客上,但是当我去到localhost/WordPress的它总是告诉我,WordPress的上XAMPP数据库错误
“错误建立一个数据库连接”
请帮助一直尝试。
// ** MySQL settings - You can get this info from your web host ** //
/** The name of the database for WordPress */
define('DB_NAME', 'wordpress');
/** MySQL database username */
define('DB_USER', 'root');
/** 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', '');
我运行它Windows
XP
而您的数据库服务器正在localhost下运行,并设置了无密码用户root?你是否创建了数据库'wordpress'? – FAS
我有phpMyadmin拉起来,我创建了一个数据库WordPress的一切都设置为无密码“据我所知”。 – budsemporium
据你所知?如果你有一个没有密码的用户root,你会在phpMyAdmin首页上看到一个很大的红色警告。 – FAS