0

Hi All!

I have made a small cms using php and mysql - I havent tried to export a databae to a webserver before, so I need a little help/confirmation.

When I click export in phpmyadmin, and chooses type to be SQL, and saves it with the allready chosen/marked boxes, and export it as insert...

....Have I then done it the correct way, so I can use the small SQL file (Upload that SQL file with the rest of the php files), to create a similar database on the production server?

Regards,

Klemme

2
Contributors
2
Replies
3
Views
6 Years
Discussion Span
Last Post by debasisdas
0

I get this error when I try to import the SQL file:

localhost
Fejl
SQL-forespørgsel:

--
-- Database: `oikos`
--
-- --------------------------------------------------------
--
-- Struktur-dump for tabellen `customers`
--
CREATE TABLE IF NOT EXISTS  `customers` (

 `id` INT( 11 ) NOT NULL AUTO_INCREMENT ,
 `navn` VARCHAR( 255 ) CHARACTER SET utf8 NOT NULL ,
 `adresse` VARCHAR( 255 ) CHARACTER SET utf8 NOT NULL ,
 `telefon` INT( 11 ) NOT NULL ,
 `email` VARCHAR( 255 ) CHARACTER SET utf8 NOT NULL ,
 `udmark` VARCHAR( 255 ) CHARACTER SET utf8 NOT NULL ,
 `skind` INT( 11 ) NOT NULL ,
 `pris` INT( 11 ) NOT NULL ,
 `kontaktet` VARCHAR( 255 ) CHARACTER SET utf8 NOT NULL ,
PRIMARY KEY (  `id` )
) ENGINE = MYISAM DEFAULT CHARSET = latin1 AUTO_INCREMENT =35;

MySQL returnerede: 

#1046 - No database selected

Anyone who knows how I can import this file properly??

Klemme

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.