关于WordPress中数据库连接配置 求解决方案,该如何解决

WBOY
Release: 2016-06-13 13:27:05
Original
935 people have browsed it

关于WordPress中数据库连接配置 求解决方案

PHP code
<!--

Code highlighting produced by Actipro CodeHighlighter (freeware)
http://www.CodeHighlighter.com/

-->
// ** MySQL 设置 - 具体信息来自您正在使用的主机 ** //
/** WordPress 数据库的名称 */
define('DB_NAME', MYSQL_DB);
define('DB_NAME', 'wp');

/** MySQL 数据库用户名 */
define('DB_USER', MYSQL_USER);
define('DB_USER', 'root');

/** MySQL 数据库密码 */
define('DB_PASSWORD', MYSQL_PASS);

/** MySQL 主机 */
define('DB_HOST', HOST);

/** 创建数据表时默认的文字编码 */
define('DB_CHARSET', 'utf8');

Copy after login


看了网上一些配置说明,是直接指定字符串如:
define('DB_USER', 'root');


我现在安装的这个WordPress是一个安装好了的,现在要迁移到自己的机器,如何配置
加上一句本人对PHP不熟,安装WordPress只是想体验一下,看上面的情况好像是对数据库,用户,密码,主机
定义了变量,如何查找,并作更改,敬请高手指教,谢谢!!!








------解决方案--------------------
你在define('DB_PASSWORD', MYSQL_PASS);
前加两句:
PHP code

echo  MYSQL_PASS;
exit;
<br><font color="#e78608">------解决方案--------------------</font><br>自己直接改就行。<br>define('DB_PASSWORD', '这里是你的密码,注意用单引号引起来'); <div class="clear">
                 
              
              
        
            </div>
Copy after login
Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!