Advanced search  

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Pages: [1]   Go Down

Author Topic: Cannot connect to MySQL db on hosted server  (Read 4144 times)

0 Members and 1 Guest are viewing this topic.

robmc

  • Coppermine newbie
  • Offline Offline
  • Posts: 1
Cannot connect to MySQL db on hosted server
« on: June 09, 2006, 06:00:27 pm »

I am installing CPG on a 1and1 hosted server, the MySQL host is a dbXXX.prefora.net server.  I have other db's running here and I am able to connect without any problems.  I am sure of the database name and user/pass. I can ping the host name, I can phpMyAdmin to the host name, but Coppermine will not connect. I have tried several different things like putting http:// as a prefix to the host name.....
The error is :

Could not create a mySQL connection, please check the SQL values entered

MySQL error was : Unknown MySQL Server Host 'dbxxx.perfora.net ' (1)


I am pretty sure its an Apache Server., with PHP v4.4.2 and all the SQL values are correct.

any help would be greatly appreciated!!!

Rob
Logged

Stramm

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: 00
  • Offline Offline
  • Gender: Male
  • Posts: 6006
    • Bettis Wollwelt
Re: Cannot connect to MySQL db on hosted server
« Reply #1 on: June 09, 2006, 06:05:28 pm »

apache and mysql are different things.... try 'localhost' as your MySQL server. If that doesn't work ask your host support

Nibbler

  • Guest
Re: Cannot connect to MySQL db on hosted server
« Reply #2 on: June 09, 2006, 06:07:00 pm »

Is there a blank space at the end of the server name ?
Logged

Vargha

  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 223
  • Persian Soldier
    • Rangarang
Re: Cannot connect to MySQL db on hosted server
« Reply #3 on: June 19, 2006, 06:28:30 pm »

try this
server:localhost
userame:root
password:(dont type anything if you didnt set 1)
Logged
Haalaa Boro Ye Chayi Vasam Dorost Kon Ta Man Ye Fekri Be Halet Bokonam ;) Ye Hendooneye Shotoriham Biyar Bizahmat :)
Visit My Site www.Rangarang.co.nr
Check Out My Gallery
www.Rangarang.co.nr/buddies
(https://forum.coppermine-gallery.net/proxy.php?request=http%3A%2F%2Fimg157.imageshack.us%2Fimg157%2F838%2Frangarang4xn.jpg&hash=48b4c3087515cafe09fc6d3f7ee19dce86328d8e)

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: Cannot connect to MySQL db on hosted server
« Reply #4 on: June 19, 2006, 09:36:19 pm »

That would be a ridiculously unsecure setting to have. You can't try out mySQL settings, you have to know them. When in doubt, ask your webhost. Recommending silly default values is not a good idea, it will leave the impression those default values would be OK. They're not!
Logged
Pages: [1]   Go Up
 

Page created in 0.017 seconds with 16 queries.