如果您有 Web 服务器的 Shell 权限,习惯使用命令行工具,并且您的 MySQL 用户有创建 MySQL 用户和数据库的权限,您可以参考下面的示例创建您的 WordPress 数据库和用户。
$ mysql -u ''adminusername'' -p
Enter password:
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 5340 to server version: 3.23.54
Type 'help;' or '\h' for help. Type '\c' to clear the buffer.
mysql> CREATE DATABASE ''databasename'';
Query OK, 1 row affected (0.00 sec)
mysql> GRANT ALL PRIVILEGES ON ''databasename''.* TO "''wordpressusername''"@"''hostname''"
-> IDENTIFIED BY "''password''";
Query OK, 0 rows affected (0.00 sec)
mysql> FLUSH PRIVILEGES;
Query OK, 0 rows affected (0.01 sec)
mysql> EXIT
Bye
$
在上面的命令及输出中:
root,除非您有另一个更高权限的账号。wordpress 或 blog 就比较好。wordpress 就比较好。localhost。如果您不知道它应该是什么,请与系统管理员联系。如果您是系统管理员,请向用户指出这个值应当是什么。记下您使用的 databasename、wordpressusername、hostname 以及 password 的值。
来源:http://gtp2p.com/wiki/wordpress:%E5%AE%89%E8%A3%85_wordpress
你可以使用这个链接引用该篇文章 http://publishblog.blogchina.com/blog/tb.b?diaryID=6590922