Page 1 of 1

Does Not Connect to DB During Installation

Posted: Sat Nov 20, 2010 3:38 pm
by TrakSoft
I am trying to install GO but it will not connect to my database during installation. I'm running PHP 5.2.14 and MySQL 5.0.67. I know PHP and MySQL and went in and looked at the code, but I am unable to figure out the problem. I went into the config file and verified that all of the DB connection attributes are correct.

This looks like a great product so I am hoping to get it up and running for testing purposes. Any help will be greatly appreciated.

Thanks,
Gary

Here are the errors I am getting:

Warning: mysqli::set_charset() [mysqli.set-charset]: Couldn't fetch mysqli in /homepages/36/d92103686/htdocs/1Live_Sites/WEBMAIL_Pers2/classes/database/mysql.class.inc.php on line 79

Warning: mysqli::real_escape_string() [mysqli.real-escape-string]: Couldn't fetch mysqli in /homepages/36/d92103686/htdocs/1Live_Sites/WEBMAIL_Pers2/classes/database/mysql.class.inc.php on line 325

Warning: mysqli::real_escape_string() [mysqli.real-escape-string]: Couldn't fetch mysqli in /homepages/36/d92103686/htdocs/1Live_Sites/WEBMAIL_Pers2/classes/database/mysql.class.inc.php on line 325

Warning: mysqli::query() [mysqli.query]: Couldn't fetch mysqli in /homepages/36/d92103686/htdocs/1Live_Sites/WEBMAIL_Pers2/classes/database/mysql.class.inc.php on line 201

Warning: db::set_error() [db.set-error]: Couldn't fetch mysqli in /homepages/36/d92103686/htdocs/1Live_Sites/WEBMAIL_Pers2/classes/database/mysql.class.inc.php on line 301

Warning: db::set_error() [db.set-error]: Couldn't fetch mysqli in /homepages/36/d92103686/htdocs/1Live_Sites/WEBMAIL_Pers2/classes/database/mysql.class.inc.php on line 302

Fatal error: Uncaught exception 'Exception' with message '<b>Database error:</b> Invalid SQL: SELECT * FROM go_settings WHERE name='' AND user_id=<br> <b>MySQL Error</b>: ()<br> ' in /homepages/36/d92103686/htdocs/1Live_Sites/WEBMAIL_Pers2/classes/database/base_db.class.inc.php:643 Stack trace: #0 /homepages/36/d92103686/htdocs/1Live_Sites/WEBMAIL_Pers2/classes/database/mysql.class.inc.php(204): base_db->halt('Invalid SQL: SE...') #1 /homepages/36/d92103686/htdocs/1Live_Sites/WEBMAIL_Pers2/classes/base/config.class.inc.php(1084): db->query('SELECT * FROM g...') #2 /homepages/36/d92103686/htdocs/1Live_Sites/WEBMAIL_Pers2/index.php(31): GO_CONFIG->get_setting('upgrade_mtime') #3 {main} thrown in /homepages/36/d92103686/htdocs/1Live_Sites/WEBMAIL_Pers2/classes/database/base_db.class.inc.php on line 643

Re: Does Not Connect to DB During Installation

Posted: Mon Nov 22, 2010 5:01 pm
by mschering
Looks like something is wrong with your php mysqli extension. You can try to fix that or you can use the old php mysql extension by setting:

$config['dbtype']='mysqlold';

in config.php. But I recommend the first option.

Re: Does Not Connect to DB During Installation

Posted: Thu Jan 16, 2014 2:42 pm
by Wortspiel
Hi,

I get the same error. I will update my GO 4.1 to the new GO 5.
If I change the config.php I will get the next error:
/go/base/db/ActiveRecord.php on line 1053

Kind regards
Wortspiel

Re: Does Not Connect to DB During Installation

Posted: Thu Jan 16, 2014 2:52 pm
by Wortspiel
Hi,

i updatet my PHP Version to 5.3.28 and now it works well.

Regards

Re: Does Not Connect to DB During Installation

Posted: Sun Nov 27, 2016 2:05 pm
by RobertPorras
thanks . it works