1
choybi
Connecting to another database
  • 2007/7/16 4:55

  • choybi

  • Just popping in

  • Posts: 4

  • Since: 2005/2/3 0


The website I am working now needs data from another existing database. I would like to know how to make XOOPS connect to that other database (which is using a different MySQL port from XOOPS database) but same host. Can anyone help? Thanks.

2
kurak_bu
Re: Connecting to another database
  • 2007/7/16 6:22

  • kurak_bu

  • Quite a regular

  • Posts: 342

  • Since: 2005/9/5 1


you have to change data in mainfile.php to the new MySQL server: for example:
define('XOOPS_DB_HOST', 'sql.xxx.com:3305');

3
choybi
Re: Connecting to another database
  • 2007/7/16 6:43

  • choybi

  • Just popping in

  • Posts: 4

  • Since: 2005/2/3 0


I still want to be connected on the XOOPS database. I just want to connect to another database while I am also connected to XOOPS database. What you suggested means that I can only connect to one database at a time.

4
kurak_bu
Re: Connecting to another database
  • 2007/7/16 7:00

  • kurak_bu

  • Quite a regular

  • Posts: 342

  • Since: 2005/9/5 1


do you mean having connection with 2 databases at time ?

Login

Who's Online

386 user(s) are online (158 user(s) are browsing Support Forums)


Members: 0


Guests: 386


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Oct 31
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits