MySQL Forums
Forum List  »  Italian

mysql errore db
Posted by: roby russo
Date: September 28, 2006 04:15PM

Ciao a tutti, spero in un Vostro supporto.
Il problema è che importando la tabella nel db non viene accettata una stringa. questo è l'errore:
Errore
query SQL:

-- phpMyAdmin SQL Dump
-- version 2.6.2-pl1
-- http://www.phpmyadmin.net
--
-- Host: localhost
-- Generation Time: Sep 25, 2005 at 05:35 AM
-- Server version: 4.1.12
-- PHP Version: 4.3.9
--
-- Database: `nzmuslim`
--
-- --------------------------------------------------------
--
-- Table structure for table `nuke_matrimonial_buddy`
--
CREATE TABLE `nuke_matrimonial_buddy` (

`buddy_id` int( 11 ) NOT NULL AUTO_INCREMENT ,
`buddy_user` int( 11 ) NOT NULL default '0',
`buddy_friend` int( 11 ) NOT NULL default '0',
`buddy_type` tinyint( 1 ) NOT NULL default '1',
PRIMARY KEY ( `buddy_id` ) ,
UNIQUE KEY `buddy_user` ( `buddy_user` , `buddy_friend` , `buddy_type` )
) ENGINE = MYISAM ;

Messaggio di MySQL:

#1050 - Table 'nuke_matrimonial_buddy' already exists

il supporto MySQL di ...Aru sostiene che dipende dal mio db in quanto non è upgradato all'ultima versione, il tecnico rifeisce:
la informo che non è posibile aggiornare la versione MySql del server condiviso per il suo DB, ma può eventualmente acquistare un nuovo DB che verrà attivato sui server con versione mySql 5.0.
Inoltre l'errore da lei riscontrato non riguarda la versione del MySql, ma che quella tabella gia' esiste.. e se vuole fare un restore deve prima mietere le tabelle.
----------------------------------------------------------------------

Rispondo:
la versione attuale MySql che utilizzo presenta alcuni difetti non dipendenti dalla mia volontà, ho riportato il link che motiva l'errore, pertanto , dovreste provvedere all'attivazione di un nuovo db in sostituzione ad uno di quelli già attivi.

Abbiamo elliminato le tabelle importate ieri, ed ecco l'errore che si presenta:

CREATE TABLE `nuke_matrimonial_pm` (
`pm_id` int( 10 ) NOT NULL AUTO_INCREMENT ,
`pm_icon` varchar( 100 ) default NULL ,
`pm_sub` varchar( 100 ) default NULL ,
`pm_from` varchar( 30 ) NOT NULL default '',
`pm_to` varchar( 30 ) NOT NULL default '',
`pm_time` timestamp NOT NULL default CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP ,
`pm_msg` text,
`pm_read` tinyint( 1 ) NOT NULL default '0',
PRIMARY KEY ( `pm_id` )
) ENGINE = MYISAM ;



Messaggio di MySQL:

#1064 - You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near 'CURRENT_TIMESTAMP on update CURRENT_TIMESTAMP,
`pm_msg` text

Ulteriore risposta ricevo da un'altro tecnico:
La versione di mysql su cui ha i db e' la 5.0.24 che e' l'ultima del ramo 5.0.x.
Faccia attenzione che importare dati da versioni differenti di mysql, necessita di correzioni a livello di sintassi nelle query.
Nel suo caso dall'intestazione del file si vede come lei stia cercando di importare un dump di un mysql 4.1.12 nel suo account 5.0.24.
Faccia rifermento a forum specializzati sull'argomento per ulteriore supporto.
---------------------------------------------------------------------

come si spiega che andando sul mio sito http://www.amoreggiare.com/info.php io leggo una vecchia versione? la 4.1.2


Grazie per chiunque mi voglia aiutare

Options: ReplyQuote


Subject
Views
Written By
Posted
mysql errore db
7003
September 28, 2006 04:15PM
2991
May 19, 2007 05:09AM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.