建立wordpress实例的数据库设置

CREATE DATABASE wp_li3huo
DEFAULT CHARACTER SET utf8 COLLATE utf8_general_ci;
CREATE USER ‘’@'localhost’ IDENTIFIED BY  ’’;
GRANT ALL PRIVILEGES ON wp_li3huo.* TO ‘wordpress’@'localhost’;
- wp-config.php
/** WordPress数据库的名称,替换掉 “putyourdbnamehere” */
define(‘DB_NAME’, ‘wp_li3huo’);
/** MySQL数据库用户名,替换掉 “usernamehere” */
define(‘DB_USER’, ‘wordpress’);
/** MySQL数据库密码,替换掉 “yourpasswordhere” */
define(‘DB_PASSWORD’, ‘wordpress’);

- mysqlCREATE DATABASE wp_li3huoDEFAULT CHARACTER SET utf8 COLLATE utf8_general_ci;
CREATE USER ‘wordpress’@'localhost’ IDENTIFIED BY  ’wordpress’;GRANT ALL PRIVILEGES ON wp_li3huo.* TO ‘wordpress’@'localhost’;
- wp-config.php/** WordPress数据库的名称,替换掉 “putyourdbnamehere” */define(‘DB_NAME’, ‘wp_li3huo’);
/** MySQL数据库用户名,替换掉 “usernamehere” */define(‘DB_USER’, ‘wordpress’);
/** MySQL数据库密码,替换掉 “yourpasswordhere” */define(‘DB_PASSWORD’, ‘wordpress’);

相关日志

This entry was posted in WordPress, 我用(IT) and tagged , . Bookmark the permalink.

发表评论

电子邮件地址不会被公开。 必填项已用 * 标注

*

您可以使用这些 HTML 标签和属性: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>