1. 论坛系统升级为Xenforo,欢迎大家测试!
    排除公告

小叶,第一次WP安装问题,

本帖由 Sunya2006-05-24 发布。版面名称:源码讨论

  1. Sunya

    Sunya Member

    注册:
    2005-09-09
    帖子:
    954
    赞:
    1
    运行install.php时提示如下

    Can’t select database
    We were able to connect to the database server (which means your username and password is okay) but not able to select the root database.

    Are you sure it exists?
    On some systems the name of your database is prefixed with your username, so it would be like username_wordpress. Could that be the problem?


    wp-config.php文件里我这样写嘀

    define('DB_NAME', 'root'); // The name of the database
    define('DB_USER', 'root'); // Your MySQL username
    define('DB_PASSWORD', 'root'); // ...and password
    define('DB_HOST', 'localhost'); // 99% chance you won't need to change this value

    我用APMServ5.1.2本地调试的,第一次安装,不知道咋用,以前都是用Asp嘀,呵呵!
     
  2. Sunya

    Sunya Member

    注册:
    2005-09-09
    帖子:
    954
    赞:
    1
    我装的是2[1].0.2版本,官方下载的!
     
  3. 空气飘飘

    空气飘飘 New Member

    注册:
    2005-12-26
    帖子:
    3,658
    赞:
    33
    which means your username and password is okay


    数据库用户名密码不对
     
  4. Hoofei

    Hoofei New Member

    注册:
    2005-12-10
    帖子:
    3,162
    赞:
    35
    define('DB_NAME', 'root'); // The name of the database

    数据库名是root么?
     
  5. Sunya

    Sunya Member

    注册:
    2005-09-09
    帖子:
    954
    赞:
    1
    FeyHoo,默认Wordpress安装也不行,要导入数据进去嘀吗?

    用户名跟密码不会错,可能的就是数据库咯
     
  6. 小叶

    小叶 New Member

    注册:
    2005-09-04
    帖子:
    17,941
    赞:
    33
    没装过,多用户的装过,总不成功。问各位wp高人吧。
     
  7. Hoofei

    Hoofei New Member

    注册:
    2005-12-10
    帖子:
    3,162
    赞:
    35
    肯定是数据库的问题啦...
    你刚装的PHP套件?很多套件默认的数据库密码是空的...

    直接安装,不需要导入数据的.
     
  8. Sunya

    Sunya Member

    注册:
    2005-09-09
    帖子:
    954
    赞:
    1
    我是直接安装的啊,安装完PHP运行环境后,就直接安装WP,然后就在wp-config.php里面那样填
     
  9. Sunya

    Sunya Member

    注册:
    2005-09-09
    帖子:
    954
    赞:
    1

    用APMServ5.1.2安装PHP+MySQL环境的,MySQL进得去啊,
     
  10. Sunya

    Sunya Member

    注册:
    2005-09-09
    帖子:
    954
    赞:
    1
    呵呵,OK咯,数据库没有建立,:sweat: 没看清楚,哈哈!
     
  11. Sunya

    Sunya Member

    注册:
    2005-09-09
    帖子:
    954
    赞:
    1
    呵呵,OK咯,数据库没有建立,:sweat: 没看清楚,哈哈!谢谢大家
     
  12. 空气飘飘

    空气飘飘 New Member

    注册:
    2005-12-26
    帖子:
    3,658
    赞:
    33
  13. Hoofei

    Hoofei New Member

    注册:
    2005-12-10
    帖子:
    3,162
    赞:
    35