wp-config.php文件
/** WordPress数据库的名称 */
define(‘DB_NAME’, ‘wordpress’);
/** MySQL数据库用户名 */
define(‘DB_USER’, ‘root’);
/** MySQL数据库密码 */
define(‘DB_PASSWORD’, ”);《《《——–关键是这里,密码为空,就是把后面冒号里的密码去掉~!
/** MySQL主机 */
define(‘DB_HOST’, ‘localhost’);
文章来源:xampp中文组官网