Error #1046 while importing a database

194 views Asked by At
Error
--
--Database: "wordpress"
--
-- --------------------------------------------------------
--
-- Table structure for table "wp_brizy_logs"
--
CREATE TABLE "wp_brizy_logs" (
  "id" bigint(20) NOT NULL,
  "type" text NOT NULL,
  "message" text NOT NULL,
  "context" text NOT NULL,
  "session_id" text NOT NULL,
  "date" datetime NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8
#1046 - No database selected

Here's my log, what may be the problem? I'm using XAMPP, but i've tried with MAMP too and the result was the same.

1

There are 1 answers

0
user8322222 On

You have to create an empty table first. Then upload your files into that empty table. You probably solved it by now but just putting this here in case someone else runs into the same problem.