geew
V2EX  ›  问与答

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

  •  
  •   geew · Aug 26, 2013 · 3408 views
    This topic created in 4817 days ago, the information mentioned may be changed or developed.
    //错误
    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 replies  •  1970-01-01 08:00:00 +08:00
    haiyang416
    haiyang416
    Aug 26, 2013 via Android
    1
    host那里加上端口。
    geew
    geew
    OP
    Aug 26, 2013
    2
    @haiyang416 define('DB_HOST', SAE_MYSQL_HOST_S:SAE_MYSQL_PORT); 这样么
    gangsta
    gangsta
    Aug 26, 2013
    3
    host那里应该是M,不是S.

    /** MySQL hostname */
    define('DB_HOST', SAE_MYSQL_HOST_M.':'.SAE_MYSQL_PORT);
    geew
    geew
    OP
    Aug 26, 2013
    4
    @gangsta 谢谢 我试试 不会php
    wzxjohn
    wzxjohn
    Aug 26, 2013
    5
    没记错的话SAE不能部署普通的wordpress。。。
    xlmo
    xlmo
    Aug 26, 2013
    6
    不是有个wordpress for sae吗?
    iamwenlyu
    iamwenlyu
    Aug 27, 2013
    7
    geew
    geew
    OP
    Aug 27, 2013
    8
    @wzxjohn 可以的
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   3388 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 45ms · UTC 10:37 · PVG 18:37 · LAX 02:37 · JFK 05:37
    ♥ Do have faith in what you're doing.