Does Not Connect to DB During Installation

Having trouble installing Group-Office? No worries. Help is on the way.

Moderator: Developers

TrakSoft
Posts: 1
Joined: Sat Nov 20, 2010 3:31 pm

Does Not Connect to DB During Installation

Postby TrakSoft » Sat Nov 20, 2010 3:38 pm

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
mschering
Site Admin
Site Admin
Posts: 8154
Joined: Tue Apr 20, 2004 1:06 pm
Location: The Netherlands - Den Bosch
Contact:

Re: Does Not Connect to DB During Installation

Postby mschering » Mon Nov 22, 2010 5:01 pm

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.
Best regards,

Merijn Schering
Intermesh
Wortspiel
Posts: 18
Joined: Mon Jun 12, 2006 6:20 am

Re: Does Not Connect to DB During Installation

Postby Wortspiel » Thu Jan 16, 2014 2:42 pm

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
Wortspiel
Posts: 18
Joined: Mon Jun 12, 2006 6:20 am

Re: Does Not Connect to DB During Installation

Postby Wortspiel » Thu Jan 16, 2014 2:52 pm

Hi,

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

Regards
RobertPorras
Posts: 9
Joined: Fri Nov 25, 2016 8:36 pm

Re: Does Not Connect to DB During Installation

Postby RobertPorras » Sun Nov 27, 2016 2:05 pm

thanks . it works

Return to “Installation”

Who is online

Users browsing this forum: No registered users and 4 guests

cron