Support Forum Project Downloads FAQ Documentation About Demo Tutorials Blog Plugins
November 21, 2009, 11:04:35 am *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News: Maintenance release cpg1.4.25 - upgrade recommended
The Coppermine development team is releasing an update for Coppermine in order to fix an issue with http uploads that could occur in particular versions of PHP.The fix is not security-critical, so if your gallery is running fine with cpg1.4.23 or cpg1.4.24 you don't need to upgrade. If you are running an older version than cpg1.4.23, you must update to this latest version as soon as possible because of the security impact (the past few maintenance releases before cpg1.4.24 all were security-related).
[more]
   Home   Help Search Board rules Login Register  
Pages: [1]   Go Down
  Send this topic  |  Print  
Author Topic: Problemi con database MySQL installazione gallery su sito  (Read 399 times)
0 Members and 1 Guest are viewing this topic.
marymc Topic starter
Coppermine newbie

Italy Italy

Posts: 14


« on: October 27, 2009, 08:41:15 pm »

Sera a tutti.
Avrei un problema. Fino ad ora ho lavorato in locale, installando quindi su un server locale la gallery etc.
Però avendo finito la creazione del sito nel momento in cui ho riportato tutti i file sul server ho problemi col database. Mi spiego. In un primo momento avevo avuto problemi di installazione che poi ho risolto ovviamente cancellando il file in 'include' che si forma dopo l'installazione. Fin qui tutto ok. Ho proseguito con la creazione del database sul server... ho iniziato l'installazione all'indirizzo miosito.com/gallery/install.php ho inserito tutti i dati, ma al momento in cui procedo mi appare il seguente errore:

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

MySQL error was : Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)

Sad spero possiate aiutarmi.
Logged
twist
Moderator
****
Gender: Male
Italy Italy

Posts: 354


WWW
« Reply #1 on: October 27, 2009, 09:03:38 pm »

devi usare gli stessi dati contenuti nell' include/config, inoltre non crea il database da solo, dovrai ricrearlo tu e fornire l'accesso (modificando la grant table) all'utente indicato nel config
Logged
marymc Topic starter
Coppermine newbie

Italy Italy

Posts: 14


« Reply #2 on: October 27, 2009, 09:07:40 pm »

hum cioè devo lasciare i valori di default contenuti nel config? e inserirli nell'istallazione?

oppure, intendi dire creare il database prima e poi inserire i dati usati nella creazione del database nell'installazione?...

perchè l'ho fatto ma mi da l'errore.
Scusa se non capisco, sono un po' lenta stasera.
Logged
twist
Moderator
****
Gender: Male
Italy Italy

Posts: 354


WWW
« Reply #3 on: October 27, 2009, 09:11:44 pm »

Non hai detto che stai trasferendo i file da un server locale al tuo hosting remoto dopo una "installazione di prova?". I questo caso non devi rieseguire l'install, fai un dump del database e lo ripristini sul server definitivo dopo aver creato il database.

A questo punto il gioco e' fatto. Non devi toccare nessun file, solo istruire mysql con i dati gia' utilizzati precedentemente
Logged
marymc Topic starter
Coppermine newbie

Italy Italy

Posts: 14


« Reply #4 on: October 28, 2009, 04:31:56 pm »

Niente da fare. Ho fatto ciò che mi hai detto... niente.
Ho anche pensato a cambiare il nome del dbserver (senza successo)... da localhost con l'id che mi offrono dal server, giungendo a quest'altro errore:

Lost connection to MySQL server at 'reading initial communication packet', system error: 113


Sad scusa.
Logged
Ludo
Contributor
***
Gender: Male
Italy Italy

Posts: 537



WWW
« Reply #5 on: October 28, 2009, 05:53:13 pm »

Il provider deve averti fornito 4 parametri per l'accesso al database MySQL, che devi inserire nella pagina di installazione secondo questo schema:

Nome host MySQL => MySQL Host
Nome database MySQL => MySQL Database Name
Nome utente MySQL => MySQL Username
Password MySQL => MySQL Password

A questo punto ci sei?
Logged
marymc Topic starter
Coppermine newbie

Italy Italy

Posts: 14


« Reply #6 on: October 31, 2009, 04:04:25 pm »

Risolto  Wink
Sbagliavo nel nome dell'host.
Logged
Pages: [1]   Go Up
  Send this topic  |  Print  
 
Jump to:  

Powered by SMF 1.1.10 | SMF © 2006-2009, Simple Machines LLC
Page created in 0.06 seconds with 16 queries.