ciao,
lo user "db2" ha tutti permessi su DB1?? ;) cioè può scrivere/cancellare/aggiornare/creare Tabelle.. etc.. etc..?
Quando si fa un export di un db in realtà si deve fare un export delle sole tabelle e contenuti in questo modo il tutto può essere importato in un qualsiasi altro db, vuoto, indipendente dal nome e dai dati di accesso di quest'ultimo. Ora visto che hai gia un file export del db, aprilo e cancella tutte le prime righe che si riferiscono al nome e dati di user e riprova l'import.
-- phpMyAdmin SQL Dump
-- version 2.8.0.2
-- http://www.phpmyadmin.net
--
-- Host: sql.host.it
-- Generato il: 02 Ago, 2012 at 05:08 PM
-- Versione MySQL: 5.1.49
-- Versione PHP: 4.3.10-22
--
-- Database: `db1`
--
CREATE DATABASE `db1` DEFAULT CHARACTER SET utf8 COLLATE utf8_general_ci;
USE `db1`;
-- --------------------------------------------------------
--
-- Struttura della tabella `jos_acymailing_config`
--
CREATE TABLE IF NOT EXISTS `jos_acymailing_config` (
`namekey` varchar(200) NOT NULL,
`value` text,
PRIMARY KEY (`namekey`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
Database 'db1'
Create database
perché tu già hai un db vuoto. Quindi dopo aver eliminato quella riga apri il tuo db vuoto e fai importa selezionando questo file.
-- Host: sql.host.it
-- Generato il: 02 Ago, 2012 at 05:08 PM
-- Versione MySQL: 5.1.49
-- Versione PHP: 4.3.10-22
--
-- DEFAULT CHARACTER SET utf8 COLLATE utf8_general_ci;
-- --------------------------------------------------------
--
-- Struttura della tabella `jos_acymailing_config`
--
CREATE TABLE IF NOT EXISTS `jos_acymailing_config` ( `namekey` varchar( 200 ) NOT NULL ,
`value` text,
PRIMARY KEY ( `namekey` ) ) ENGINE = MYISAM DEFAULT CHARSET = utf8;
Verifica le versioni del server mysql, se sono diverse quando esporti devi impostare la modalità compatibile.
-- phpMyAdmin SQL Dump
-- version 2.8.0.2
-- http://www.phpmyadmin.net
--
-- Host: sql.HOST.it
-- Generato il: 02 Ago, 2012 at 05:08 PM
-- Versione MySQL: 5.1.49
-- Versione PHP: 4.3.10-22
No mica devi modificarla nel file. Devi settarla quando esporti, lo fai nelle opzioni.
-- phpMyAdmin SQL Dump
-- version 3.4.11.1deb1
-- http://www.phpmyadmin.net
--
-- Host: localhost
-- Generato il: Mar 19, 2013 alle 08:54
-- Versione del server: 5.5.29
-- Versione PHP: 5.4.6-1ubuntu1.1
SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO";
SET time_zone = "+00:00";
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
/*!40101 SET NAMES utf8 */;
--
-- Database: `dbjoomla`
--
-- --------------------------------------------------------
--
-- Struttura della tabella `x5pis_3bmeteo`
--
CREATE TABLE IF NOT EXISTS `x5pis_3bmeteo` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`nome` varchar(255) DEFAULT NULL,
`id_formato` varchar(55) NOT NULL,
`id_macrosettore` int(11) NOT NULL,
`id_localita` int(11) DEFAULT NULL,
`id_lang` varchar(2) NOT NULL,
`bck_color_1` varchar(6) DEFAULT NULL,
`bck_color_2` varchar(6) DEFAULT NULL,
`txt_color_1` varchar(6) DEFAULT NULL,
`txt_color_2` varchar(6) DEFAULT NULL,
`id_module` int(11) DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=3 ;
--
-- Dump dei dati per la tabella `x5pis_3bmeteo`
--
INSERT INTO `x5pis_3bmeteo` (`id`, `nome`, `id_formato`, `id_macrosettore`, `id_localita`, `id_lang`, `bck_color_1`, `bck_color_2`, `txt_color_1`, `txt_color_2`, `id_module`) VALUES
(1, '3BMeteo', 'localita_7_giorni_dettaglio', 16, 3683, 'it', 'a8a8a8', 'd6c2ff', '000000', 'ffffff', NULL),
(2, '3b Meteo en', 'localita_7_giorni_dettaglio', 16, 3683, 'en', 'fc9b2a', 'ffffff', 'ffffff', '5e5e5e', NULL);
Caio a tutti,
ti incollo qui la export di una parte del DB che ho in locale nel mio pc.-- phpMyAdmin SQL Dump
-- version 3.4.11.1deb1
-- http://www.phpmyadmin.net
--
-- Host: localhost
-- Generato il: Mar 19, 2013 alle 08:54
-- Versione del server: 5.5.29
-- Versione PHP: 5.4.6-1ubuntu1.1
SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO";
SET time_zone = "+00:00";
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
/*!40101 SET NAMES utf8 */;
--
-- Database: `dbjoomla`
--
-- --------------------------------------------------------
--
-- Struttura della tabella `x5pis_3bmeteo`
--
CREATE TABLE IF NOT EXISTS `x5pis_3bmeteo` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`nome` varchar(255) DEFAULT NULL,
`id_formato` varchar(55) NOT NULL,
`id_macrosettore` int(11) NOT NULL,
`id_localita` int(11) DEFAULT NULL,
`id_lang` varchar(2) NOT NULL,
`bck_color_1` varchar(6) DEFAULT NULL,
`bck_color_2` varchar(6) DEFAULT NULL,
`txt_color_1` varchar(6) DEFAULT NULL,
`txt_color_2` varchar(6) DEFAULT NULL,
`id_module` int(11) DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=3 ;
--
-- Dump dei dati per la tabella `x5pis_3bmeteo`
--
INSERT INTO `x5pis_3bmeteo` (`id`, `nome`, `id_formato`, `id_macrosettore`, `id_localita`, `id_lang`, `bck_color_1`, `bck_color_2`, `txt_color_1`, `txt_color_2`, `id_module`) VALUES
(1, '3BMeteo', 'localita_7_giorni_dettaglio', 16, 3683, 'it', 'a8a8a8', 'd6c2ff', '000000', 'ffffff', NULL),
(2, '3b Meteo en', 'localita_7_giorni_dettaglio', 16, 3683, 'en', 'fc9b2a', 'ffffff', 'ffffff', '5e5e5e', NULL);
Questo è l'inizio del mio file .sql spero ti serva per trarne ispirazione e possa servire a risolvere.
Quando sei in PhpMyAdmin, premi in alto su DATABASE, seleziona il DATABASE vuoto e poi premi sul bottone in alto IMPORTA, copi e incolli il tuo testo della esportazione... e se tutto va bene ti ritroverai con il DB funzionante.
Spero. ;)
Database (https://belliemonelliferrets%2Eit:jiezeota@cp.*****.it/mysql/themes/arctic_ocean/img/s_asc.png) (https://belliemonelliferrets%2Eit:jiezeota@cp.*****.it/mysql/server_databases.php?&dbstats=0&sort_by=SCHEMA_NAME&sort_order=desc) | Collation (https://belliemonelliferrets%2Eit:jiezeota@cp.*****.it/mysql/server_databases.php?&dbstats=0&sort_by=DEFAULT_COLLATION_NAME&sort_order=desc) | Tabelle (https://belliemonelliferrets%2Eit:jiezeota@cp.*****.it/mysql/server_databases.php?&dbstats=0&sort_by=SCHEMA_TABLES&sort_order=desc) | Righe (https://belliemonelliferrets%2Eit:jiezeota@cp.*****.it/mysql/server_databases.php?&dbstats=0&sort_by=SCHEMA_TABLE_ROWS&sort_order=desc) | Dati (https://belliemonelliferrets%2Eit:jiezeota@cp.*****.it/mysql/server_databases.php?&dbstats=0&sort_by=SCHEMA_DATA_LENGTH&sort_order=desc) | Indici (https://belliemonelliferrets%2Eit:jiezeota@cp.*****.it/mysql/server_databases.php?&dbstats=0&sort_by=SCHEMA_INDEX_LENGTH&sort_order=desc) | Totale (https://belliemonelliferrets%2Eit:jiezeota@cp.*****.it/mysql/server_databases.php?&dbstats=0&sort_by=SCHEMA_LENGTH&sort_order=desc) | In eccesso (https://belliemonelliferrets%2Eit:jiezeota@cp.*****.it/mysql/server_databases.php?&dbstats=0&sort_by=SCHEMA_DATA_FREE&sort_order=desc) | ||||
database2 (https://belliemonelliferrets%2Eit:jiezeota@cp.*****.it/mysql/index.php?&db=belliemo44725) | latin1_swedish_ci | 0 | 0 | 0 | Bytes | 0 | Bytes | 0 | Bytes | 0 | Bytes |
information_schema (https://belliemonelliferrets%2Eit:jiezeota@cp.*****.it/mysql/index.php?&db=information_schema) | utf8_general_ci | 28 | 0 | 0 | Bytes | 8,0 | KB | 8,0 | KB | 0 | Bytes |
Totale: 2 | latin1_swedish_ci | 28 | 0 | 0 | Bytes | 8,0 | KB | 8,0 | KB | 0 | Bytes |