Joomla.it Forum

Joomla! 1.5.x (versione con supporto terminato) => Joomla! 1.5 => Installazione, migrazione e aggiornamento => : giov 09 Oct 2010, 18:35:38

: Database Error: Unable to connect to the database:Could not connect to MySQL????
: giov 09 Oct 2010, 18:35:38
Buona sera a tutti,
sono qui a postarvi un problema che mi sta facendo impazzire...
Un mio amico mi ha chiesto di togliergli un suo sito in flash e di mettergli sul server un vecchio sito in joomla che gia aveva... fin qui nulla di particolare...
quando vado ad istallare il sito mi appare questa scritta "Database Error: Unable to connect to the database:Could not connect to MySQL"... non risco a risolvere il problema...
Il vecchio web master mi ha inviato un file .sql che mi dice di sostituire ma non ho molto capito bene dove lo devo mettere
: Re:Database Error: Unable to connect to the database:Could not connect to MySQL????
: mau_develop 09 Oct 2010, 18:44:32
il file lo devi mettere nel database ma devi avere user e password del db, altrimenti come lo installi joomla?
Quell'errore avviene o perchè non esiste più il db o non hai inserito i dati corretti
M.
: Re:Database Error: Unable to connect to the database:Could not connect to MySQL????
: giov 09 Oct 2010, 18:47:41
ma nel database php???
: Re:Database Error: Unable to connect to the database:Could not connect to MySQL????
: maicolstaip 09 Oct 2010, 19:09:31
Ciao giov,
il database lo devi importare via PhpMyadmin
: Re:Database Error: Unable to connect to the database:Could not connect to MySQL????
: giov 09 Oct 2010, 19:12:42
ci ho gia provato ma mi dà errore
Errore
query SQL:

--
-- Dump dei dati per la tabella `jos_banner`


: Re:Database Error: Unable to connect to the database:Could not connect to MySQL????
: giov 09 Oct 2010, 19:14:08
ci ho gia provato ma mi dà errore
Errore
query SQL:

--
-- Dump dei dati per la tabella `jos_banner`

gli devo dare lo stesso nome del database esistente????
: Re:Database Error: Unable to connect to the database:Could not connect to MySQL????
: devil_cp 09 Oct 2010, 21:42:29
ci ho gia provato ma mi dà errore
Errore
query SQL:

--
-- Dump dei dati per la tabella `jos_banner`

Ma il messaggio di errore è tutto quì o ne hai incollato solo una parte?
: Re:Database Error: Unable to connect to the database:Could not connect to MySQL????
: giov 10 Oct 2010, 09:30:16
ho incollato solo una parte ora lo riporto tutto

"Errore
query SQL:

--
-- Dump dei dati per la tabella `jos_banner`
--
INSERT INTO  `jos_banner` (  `bid` ,  `cid` ,  `type` ,  `name` ,  `alias` ,  `imptotal` ,  `impmade` ,  `clicks` ,  `imageurl` ,  `clickurl` ,  `date` , `showBanner` ,  `checked_out` ,  `checked_out_time` ,  `editor` ,  `custombannercode` ,  `catid` ,  `description` ,  `sticky` ,  `ordering` , `publish_up` ,  `publish_down` ,  `tags` ,  `params` )
VALUES ( 1, 1,  'banner',  'OSM 1',  'osm-1', 0, 43, 0,  'osmbanner1.png',  'http://www.opensourcematters.org',  '2004-07-07 15:31:29', 1, 0, '0000-00-00 00:00:00',  '',  '', 13,  '', 0, 1,  '0000-00-00 00:00:00',  '0000-00-00 00:00:00',  '',  '' ) , ( 2, 1,  'banner',  'OSM 2',  'osm-2', 0, 49, 0, 'osmbanner2.png',  'http://www.opensourcematters.org',  '2004-07-07 15:31:29', 1, 0,  '0000-00-00 00:00:00',  '',  '', 13,  '', 0, 2, '0000-00-00 00:00:00',  '0000-00-00 00:00:00',  '',  '' ) , ( 3, 1,  '',  'Joomla!',  'joomla', 0, 19, 0,  '',  'http://www.joomla.org', '2006-05-29 14:21:28', 1, 0,  '0000-00-00 00:00:00',  '', '<a href="{CLICKURL}" target="_blank">{NAME}[/url]\r\n
\r\nJoomla! The most popular and widely used Open Source CMS Project in the world.', 14,  '', 0, 1,  '0000-00-00 00:00:00',  '0000-00-00 00:00:00',  '',  '' ) , ( 4, 1,  '',  'JoomlaCode',  'joomlacode', 0, 19, 0,  '',  'http://joomlacode.org', '2006-05-29 14:19:26', 1, 0,  '0000-00-00 00:00:00',  '', '<a href="{CLICKURL}" target="_blank">{NAME}[/url]\r\n
\r\nJoomlaCode, development and distribution made easy.', 14,  '', 0, 2, '0000-00-00 00:00:00',  '0000-00-00 00:00:00',  '',  '' ) , ( 5, 1,  '',  'Joomla! Extensions',  'joomla-extensions', 0, 14, 0,  '', 'http://extensions.joomla.org',  '2006-05-29 14:23:21', 1, 0,  '0000-00-00 00:00:00',  '', '<a href="{CLICKURL}" target="_blank">{NAME}[/url]\r\n
\r\nJoomla! Components, Modules, Plugins and Languages by the bucket load.', 14,  '', 0, 3,  '0000-00-00 00:00:00',  '0000-00-00 00:00:00',  '',  '' ) , ( 6, 1,  '',  'Joomla! Shop',  'joomla-shop', 0, 14, 0,  '', 'http://shop.joomla.org',  '2006-05-29 14:23:21', 1, 0,  '0000-00-00 00:00:00',  '', '<a href="{CLICKURL}" target="_blank">{NAME}[/url]\r\n
\r\nFor all your Joomla! merchandise.', 14,  '', 0, 4,  '0000-00-00 00:00:00', '0000-00-00 00:00:00',  '',  '' ) , ( 7, 1,  '',  'Joomla! Promo Shop',  'joomla-promo-shop', 0, 9, 1,  'shop-ad.jpg',  'http://shop.joomla.org', '2007-09-19 17:26:24', 1, 0,  '0000-00-00 00:00:00',  '',  '', 33,  '', 0, 3,  '0000-00-00 00:00:00',  '0000-00-00 00:00:00',  '',  '' ) , ( 8, 1,  '', 'Joomla! Promo Books',  'joomla-promo-books', 0, 10, 0,  'shop-ad-books.jpg',  'http://shop.joomla.org/amazoncom-bookstores.html', '2007-09-19 17:28:01', 1, 0,  '0000-00-00 00:00:00',  '',  '', 33,  '', 0, 4,  '0000-00-00 00:00:00',  '0000-00-00 00:00:00',  '',  '' ) ;


Messaggio di MySQL:

#1062 - Duplicate entry '1' for key 1 "

non rieco a capirci più nulla!!!!!
: Re:Database Error: Unable to connect to the database:Could not connect to MySQL????
: tomtomeight 10 Oct 2010, 09:35:30
Ciao
Secondo me hai prima installato joomla ed ora cerchi di importare il database, ma come da errore
#1062 - Duplicate entry '1' for key 1 "
hai già nello stesso dei dati.
Devi cancellare tutte le tabelle del database prima di importare le altre tabelle.
: Re:Database Error: Unable to connect to the database:Could not connect to MySQL????
: giov 10 Oct 2010, 09:38:42
ma quello che vado ad inserire lo devo rinominare come quello che cancello???
: Re:Database Error: Unable to connect to the database:Could not connect to MySQL????
: tomtomeight 10 Oct 2010, 09:44:59
Quello che vai ad inserire è sotto forma di file .sql e non ha importanza come lo chiami, piuttosto vedi con un editor (notepad++) se all'inizio ci sono riferimenti al nome ed utente del database stesso ed eliminali, in alternativa cambiali come da nuovo database e non vecchio.
: Re:Database Error: Unable to connect to the database:Could not connect to MySQL????
: giov 10 Oct 2010, 14:44:42
tipo??? quali sarebbero questi riferimenti???
: Re:Database Error: Unable to connect to the database:Could not connect to MySQL????
: giov 10 Oct 2010, 15:13:56
ho cambiato il database pero non riesco comunque a vedere il sito
: Re:Database Error: Unable to connect to the database:Could not connect to MySQL????
: tomtomeight 10 Oct 2010, 17:32:38
allinizio di un file .sql ci sono i riferimenti al database da creare, dopodichè le tabelle da popolare, tu togli la parte relativa alla creazione del database
: Re:Database Error: Unable to connect to the database:Could not connect to MySQL????
: magale 12 Oct 2010, 11:32:52
Mi associo a questo thread perchè ho lo stesso errore ma comportamento diverso.

Ho installato ieri la versione Joomla 1.5.21 ita Stable e in fase d'installazione tutto nessun problema, ha trovato il server, creato le tabelle nel database etc...

Come è possibile che randomicamente compare l'errore "Database Error: Unable to connect to the database:Could not connect to MySQL"

E' come se si perdesse la connessione, anche facendo F5 sulla stessa pagina

Premetto che ho il database su un altro server con un proprio utente amministratore.

Nel file di configurazione ho inserito
var $host = 'IP del server';

Qualche suggerimento?
: Re:Database Error: Unable to connect to the database:Could not connect to MySQL????
: devil_cp 12 Oct 2010, 14:08:21
Mi associo a questo thread perchè ho lo stesso errore ma comportamento diverso.

Ho installato ieri la versione Joomla 1.5.21 ita Stable e in fase d'installazione tutto nessun problema, ha trovato il server, creato le tabelle nel database etc...

Come è possibile che randomicamente compare l'errore "Database Error: Unable to connect to the database:Could not connect to MySQL"

E' come se si perdesse la connessione, anche facendo F5 sulla stessa pagina

Premetto che ho il database su un altro server con un proprio utente amministratore.

Nel file di configurazione ho inserito
var $host = 'IP del server';

Qualche suggerimento?

Hai verificato che la connessione di rete tra i due server sia sempre attiva?
: Re:Database Error: Unable to connect to the database:Could not connect to MySQL????
: magale 12 Oct 2010, 14:15:35
Hai verificato che la connessione di rete tra i due server sia sempre attiva?

Giusta osservazione...ma dove dovrei verificare?
: Re:Database Error: Unable to connect to the database:Could not connect to MySQL????
: devil_cp 12 Oct 2010, 14:18:29
Giusta osservazione...ma dove dovrei verificare?

Il fatto che a volte il db risponda e che a volte no potrebbe essere dovuto a quello.