【问题标题】:how install joomla on the cloud 9 IDE?如何在 Cloud 9 IDE 上安装 joomla?
【发布时间】:2016-05-14 15:42:22
【问题描述】:

我无法安装 joomla。在第二阶段“数据库”中,我写入主机名“0.0.0.0”,但数据库无法连接到 MySQL。我试过写8080和localhost,但是结果是一样的。我能做什么?

【问题讨论】:

    标签: joomla ide cloud cloud9-ide


    【解决方案1】:

    根据this source,0.0.0.0 是正确的主机名,所以这可能不是问题的根源。

    • 您检查过 mysql 是否正在运行?

    • 您的数据库用户名/密码可能有问题? This page has a simple php 您可以创建脚本来测试您的数据库凭据是否正确并且 MySQL 是否正在运行。设置密码和数据库名称,看看是否连接。

      $servername = getenv('IP');
      $username = getenv('C9_USER');
      $password = "...";
      $database = "...";
      $dbport = 3306;
      
      // Create connection
      $db = new mysqli($servername, $username, $password, $database, $dbport);
      
      // Check connection
      if ($db->connect_error) {
          die("Connection failed: " . $db->connect_error);
      } 
      echo "Connected successfully (".$db->host_info.")";
      

    祝你好运!

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2014-09-07
      相关资源
      最近更新 更多