我已完成一项工作以更新wordpress网站, 但似乎无法找到用于登录数据库的用户名和密码。 wp-config.php并不在那里, 我所能看到的就是wp-config-sample.php, 我已经检查过是否有任何隐藏文件。
我可以搜索一个特定的单词来轻松地在php文件中找到连接字符串吗?我正在notpad ++中使用文件中搜索功能
#1
你可以在文档中找到, 以下字符串用于定义数据库连接:
/ ** WordPress的数据库名称* / define(‘DB_NAME’, ‘database_name_here’); / ** MySQL数据库用户名* / define(‘DB_USER’, ‘username_here’); / ** MySQL数据库密码* / define(‘DB_PASSWORD’, ‘password_here’); / ** MySQL主机名* / define(‘DB_HOST’, ‘localhost’);
希望对你有所帮助。
来源:
https://www.srcmini02.com/66694.html
微信公众号
手机浏览(小程序)
Warning: get_headers(): SSL operation failed with code 1. OpenSSL Error messages:
error:14090086:SSL routines:ssl3_get_server_certificate:certificate verify failed in
/mydata/web/wwwshanhubei/web/wp-content/themes/shanhuke/single.php on line
57
Warning: get_headers(): Failed to enable crypto in
/mydata/web/wwwshanhubei/web/wp-content/themes/shanhuke/single.php on line
57
Warning: get_headers(https://static.shanhubei.com/qrcode/qrcode_viewid_37036.jpg): failed to open stream: operation failed in
/mydata/web/wwwshanhubei/web/wp-content/themes/shanhuke/single.php on line
57