V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
V2EX 提问指南
geew
V2EX  ›  问与答

有人在sae上部署过wordpress3.6么? 提示数据库问题, 是设置不对吗?

  •  
  •   geew · 2013-08-26 17:36:21 +08:00 · 2526 次点击
    这是一个创建于 4099 天前的主题,其中的信息可能已经有所发展或是发生改变。
    //错误
    Error establishing a database connection
    This either means that the username and password information in your wp-config.php file is incorrect or we can't contact the database server at r.rdc.sae.sina.com.cn. This could mean your host's database server is down.

    Are you sure you have the correct username and password?
    Are you sure that you have typed the correct hostname?
    Are you sure that the database server is running?
    If you're unsure what these terms mean you should probably contact your host. If you still need help you can always visit the WordPress Support Forums.


    //数据库设置
    define('DB_NAME', SAE_MYSQL_DB);

    /** MySQL database username */
    define('DB_USER', SAE_MYSQL_USER);

    /** MySQL database password */
    define('DB_PASSWORD', SAE_MYSQL_PASS);

    /** MySQL hostname */
    define('DB_HOST', SAE_MYSQL_HOST_S);

    /** Database Charset to use in creating database tables. */
    define('DB_CHARSET', 'utf8');

    /** The Database Collate type. Don't change this if in doubt. */
    define('DB_COLLATE', '');
    8 条回复    1970-01-01 08:00:00 +08:00
    haiyang416
        1
    haiyang416  
       2013-08-26 17:37:33 +08:00 via Android
    host那里加上端口。
    geew
        2
    geew  
    OP
       2013-08-26 17:42:11 +08:00
    @haiyang416 define('DB_HOST', SAE_MYSQL_HOST_S:SAE_MYSQL_PORT); 这样么
    gangsta
        3
    gangsta  
       2013-08-26 18:02:33 +08:00
    host那里应该是M,不是S.

    /** MySQL hostname */
    define('DB_HOST', SAE_MYSQL_HOST_M.':'.SAE_MYSQL_PORT);
    geew
        4
    geew  
    OP
       2013-08-26 20:19:34 +08:00
    @gangsta 谢谢 我试试 不会php
    wzxjohn
        5
    wzxjohn  
       2013-08-26 21:13:25 +08:00
    没记错的话SAE不能部署普通的wordpress。。。
    xlmo
        6
    xlmo  
       2013-08-26 21:18:58 +08:00
    不是有个wordpress for sae吗?
    zwl2828
        7
    zwl2828  
       2013-08-27 06:10:21 +08:00
    geew
        8
    geew  
    OP
       2013-08-27 08:54:38 +08:00
    @wzxjohn 可以的
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   实用小工具   ·   2816 人在线   最高记录 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 23ms · UTC 06:52 · PVG 14:52 · LAX 22:52 · JFK 01:52
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.