到安装的主目录,找到wp-config.php,如下信息为连接数据库参数:
/** WordPress数据库的名称 */ define('DB_NAME', 'wpdx'); /** MySQL数据库用户名 */ define('DB_USER', 'root'); /** MySQL数据库密码 */ define('DB_PASSWORD', 'root'); /** MySQL主机 */ define('DB_HOST', 'localhost');
找到DB_USER和DB_PASSWORD
修改相关数据。