简体   繁体   中英

how install joomla on the cloud 9 IDE?

I cann't install joomla. In stage two "Database" i write into host name "0.0.0.0", but DB could not connect to MySQL. I tried to write 8080 and localhost, but the result is the same. What can i do?

According to this source , 0.0.0.0 is the correct hostname, so that's probably not the source of your problem.

  • have you checked that mysql is running?

  • maybe there's a problem with your DB username / password? This page has a simple php script you could create to test if your DB credentials are correct and MySQL is running. Set the password and database name and see if it connects.

     $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.")"; 

Good luck!

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM