建立wordpress实例的数据库设置

Posted on Fri 18 June 2010 in 我用(IT), WordPress • Tagged with MySQL, WordPress

- mysql
CREATE DATABASE wp_li3huo
DEFAULT 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');
  • mysqlCREATE DATABASE wp_li3huoDEFAULT CHARACTER SET ...

Continue reading