1、创建数据库wordpress
create database wordpress;
GRANT SELECT,INSERT,UPDATE,DELETE,INDEX,ALTER,CREATE, LOCK TABLES,DROP,REFERENCES ON wordpress.* TO wordpress@localhost IDENTIFIED BY ‘wordpress’;
FLUSH PRIVILEGES;
2、修改wp-config-sample.php 为wp-config.php
define(’DB_NAME’, ‘wordpress’); // The name of the database
define(’DB_USER’, ‘wordpress’); // Your MySQL username
define(’DB_PASSWORD’, ‘wordpress’); // …and password
define(’DB_HOST’, ‘localhost’); // 99% chance you won’t need to change this value
define(’DB_CHARSET’, ‘latin1′);
本文提供了一步一步的指导来帮助读者完成WordPress的安装过程。主要内容包括:创建名为wordpress的数据库并设置权限;修改wp-config-sample.php文件为wp-config.php,并配置数据库连接参数;最后通过浏览器访问安装脚本开始安装。
597





