Convertire File Sql In Altro Formato

Uhero

Nuovo Utente
27
2
Ho un file .sql contenente luoghi da importare su google maps, solo che google maps accetta solo i seguenti formati: SV, TSV, KML, KMZ, GPX o XLSX. Non riesco a trovare nulla online per convertirlo, qualcuno mi può spiegare passo passo cosa dovrei fare? Sono completamente digiuno di programmazione :(
 

TechArch

Utente Attivo
592
121
E' un file .sql in che senso? Contiene delle "INSERT"? Prova a postare qualche riga, se il "formato" è quello che penso io devi utilizzare un DB di appoggio (cosa che non sei in grado di fare da solo purtroppo).
 

Uhero

Nuovo Utente
27
2
Per file sql intendo che si chiama portals.utf8.sql e il tipo di file riconosciuto da windows è ''file SQL''. Non so cosa siano gli insert, ma ti copio la prima parte del file (che apro tranquillamente con word):

-- MySQL dump 10.13 Distrib 5.6.20, for Win32 (x86)
--
-- ------------------------------------------------------
-- Server version 5.6.25-73.1

/*!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 */;
/*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */;
/*!40103 SET TIME_ZONE='+00:00' */;
/*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */;
/*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */;
/*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */;
/*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */;

--
-- Table structure for table `portals`
--

DROP TABLE IF EXISTS `portals`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `portals` (
`guid` varchar(36) NOT NULL,
`title` varchar(255) NOT NULL,
`description` text,
`image` varchar(255) DEFAULT NULL,
`level` int(10) unsigned NOT NULL,
`effectiveLevel` decimal(10,4) DEFAULT NULL,
`lat` decimal(10,6) NOT NULL,
`lng` decimal(10,6) NOT NULL,
`health` int(10) unsigned NOT NULL,
`resCount` int(10) unsigned NOT NULL,
`team` varchar(45) NOT NULL,
`address` varchar(255) DEFAULT NULL,
`capturedTime` int(10) unsigned DEFAULT NULL,
`owner` varchar(45) DEFAULT NULL,
`firstSeen` int(10) unsigned NOT NULL,
`lastSeen` int(10) unsigned NOT NULL,
`lastUpdate` int(10) unsigned NOT NULL,
`lastActivity` int(10) unsigned DEFAULT NULL,
`notfound` tinyint(4) NOT NULL DEFAULT '0',
`latE6` int(18) NOT NULL,
`lngE6` int(18) NOT NULL,
PRIMARY KEY (`guid`),
KEY `guid` (`guid`),
KEY `lat` (`lat`),
KEY `lng` (`lng`),
KEY `owner` (`owner`),
KEY `capturedTime` (`capturedTime`),
KEY `team` (`team`),
KEY `notfound` (`notfound`),
KEY `firstSeen` (`firstSeen`),
KEY `lastSeen` (`lastSeen`),
KEY `lastUpdate` (`lastUpdate`),
KEY `lastActivity` (`lastActivity`),
KEY `title` (`title`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `portals`
--

LOCK TABLES `portals` WRITE;
/*!40000 ALTER TABLE `portals` DISABLE KEYS */;
INSERT INTO `portals` VALUES

A queste stringhe seguono i dati delle posizioni con latitudine, longitudine ecc...
Ho trovato questo:
https://developers.google.com/maps/documentation/javascript/mysql-to-maps
Ma sinceramente ci ho capito poco, soprattutto il fatto che sia in inglese non mi aiuta. Dici che non è fattibile da fare per me?
 

TechArch

Utente Attivo
592
121
È uno script .sql come immaginavo. Posta qualche riga con i dati.
Gli INSERT di cui parlo sono le istruzioni per inserire i dati nelle tabelle .sql, l'ultima riga che hai postato di script sopra è un famoso "INSERT".
Il link che hai postato serve per creare delle mappe Google partendo da diversi dati di posizione passando da un DB mysql, attraverso diversi script... cosa che per te credo sia difficile.
 

Entra

oppure Accedi utilizzando
Discord Ufficiale Entra ora!