• Jetzt anmelden. Es dauert nur 2 Minuten und ist kostenlos!

MSQL Datenbak Importiern

Conkuist

Mitglied
Hi ich wollte mal eine Video Gallery ausprobiern die ich im Netz gefunden habe
nur leider bin ich zu doof die Datenbank mit my phpAdmin zu importieren

Bekomme immer folgenden Fehler beim Importieren

Was mache ich falsch?
Code:
Fehler

SQL-Befehl:



--
-- Database: `m_vg`
--

-- --------------------------------------------------------

--
-- Table structure for table `contact`
--

CREATE TABLE IF NOT EXISTS `contact` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `comment` text,
  `author` varchar(255) DEFAULT NULL,
  `email` varchar(255) DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=MyISAM  DEFAULT CHARSET=latin1 AUTO_INCREMENT=42 ;

MySQL meldet: Dokumentation
#1046 - No database selected

Hier ein Teil des Codes den Vollständigen Code habe ich als zip angehänget welche ich importieren wollte
Code:
-- phpMyAdmin SQL Dump
-- version 3.3.3
-- http://www.phpmyadmin.net
--
-- Host: localhost:3306
-- Generation Time: Jan 02, 2012 at 06:51 PM
-- Server version: 5.1.54
-- PHP Version: 5.2.6

SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO";


/*!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: `m_vg`
--

-- --------------------------------------------------------

--
-- Table structure for table `contact`
--

CREATE TABLE IF NOT EXISTS `contact` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `comment` text,
  `author` varchar(255) DEFAULT NULL,
  `email` varchar(255) DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=MyISAM  DEFAULT CHARSET=latin1 AUTO_INCREMENT=42 ;

--
-- Dumping data for table `contact`
--


-- --------------------------------------------------------

--
-- Table structure for table `dic`
--

CREATE TABLE IF NOT EXISTS `dic` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `word` varchar(255) NOT NULL,
  `freq` int(11) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=MyISAM  DEFAULT CHARSET=latin1 AUTO_INCREMENT=3265 ;

--
-- Dumping data for table `dic`
--

INSERT INTO `dic` (`id`, `word`, `freq`) VALUES
(2993, 'angel', 2),
(2994, 'ab', 1),
(2995, 'pull', 2),
(2996, 'up', 7),

................
 

Anhänge

  • m_vg.sql.zip
    12,7 KB · Aufrufe: 1
Werbung:
Werbung:
Zurück
Oben