Jump to content
  • 0

Error Installing Blesta V3.5.3 Free Trial, Sqlstate[Hy000]: General Error: 2005


tonipouk

Question

now  trying to install the  Blesta V3.5.3 Free Trial version in my Ubuntu Linux Amazon server, doing the install by the Web Wizard,  I got this error in screen:

 

SQLSTATE[HY000] [2005] Unknown MySQL server host '{database_host}' (0) on line 267 in /var/www/html/blesta/lib/model.php 

Printing Stack Trace:
#0 /var/www/html/blesta/lib/model.php(57): Model->makeConnection(NULL)
#1 /var/www/html/blesta/app/app_model.php(0): Model->__construct()
#2 /var/www/html/blesta/app/models/currencies.php(17): AppModel->__construct()
#3 [internal function]: Currencies->__construct()
#4 [internal function]: ReflectionClass->newInstance()
#5 /var/www/html/blesta/lib/loader.php(73): call_user_func_array(Array, Array)
#6 /var/www/html/blesta/helpers/currency_format/currency_format.php(33): Loader::loadModels(Object(CurrencyFormat), Array)
#7 [internal function]: CurrencyFormat->__construct()
#8 [internal function]: ReflectionClass->newInstance()
#9 /var/www/html/blesta/lib/loader.php(211): call_user_func_array(Array, Array)
#10 /var/www/html/blesta/lib/loader.php(95): Loader::loadAndInitialize(Object(AdminMain), 'helper', Array)
#11 /var/www/html/blesta/lib/controller.php(127): Loader::loadHelpers(Object(AdminMain), Array)
#12 /var/www/html/blesta/lib/controller.php(99): Controller->helpers(Array)
#13 /var/www/html/blesta/app/app_controller.php(0): Controller->__construct()
#14 /var/www/html/blesta/lib/dispatcher.php(85): AppController->__construct('admin_main', NULL, false)
#15 /var/www/html/blesta/index.php(21): Dispatcher::dispatch('/blesta/admin/')
#16 {main}

 

Any idea about what is happening?

Thanks

 

 

 

post-11459-0-44468000-1444136719_thumb.p

Link to comment
Share on other sites

2 answers to this question

Recommended Posts

  • 0

Can you please try and keep it in one thread, this is another error for the same poster. And I believe it's because it can't write the config.php. Check if it has created the file and not the information.

 

It would also help if you can tell us more about the server you are using. PHP Version, MySQL Version, etc.

Link to comment
Share on other sites

  • 0

It does sound like Blesta was either unable to create the config file during installation, or the data you entered during installation could not be written to it. Do you have /config/blesta.php? Or just /config/blesta-new.php?

 

/config/blesta.php contains your database information. This should have automatically been added during installation, but you can set your database information directly into that file.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...