hi everyone
when i tried to import my web site database to local sql server myphpadmin
show me this errors i dont know why ??
please help me

Error
SQL query:

--
-- Database: `hakaek10_alqemaalhakaek`
--
-- --------------------------------------------------------
--
-- Table structure for table `rafia_admin_menu`
--
CREATE TABLE IF NOT EXISTS `rafia_admin_menu` (

`menuid` INT( 10 ) NOT NULL AUTO_INCREMENT ,
`submenu` INT( 1 ) NOT NULL DEFAULT '0',
`orderby` INT( 10 ) NOT NULL DEFAULT '0',
`menutitle` VARCHAR( 100 ) DEFAULT NULL ,
`menuurl` VARCHAR( 100 ) DEFAULT NULL ,
PRIMARY KEY ( `menuid` )
) ENGINE = MYISAM DEFAULT CHARSET = latin1 AUTO_INCREMENT =82;

MySQL said:

#1046 - No database selected

Recommended Answers

All 4 Replies

How did you do the import ? You have to select a database first, but how to do that depends on your method.

Add the following to the beginning of your text file:

USE Database ;

Where Database is the name of the database you want to create the table in.

yes i import its by choosing file from import tab in myphpadmin
any suggestion ?

sorry i notice that im not select it
thankx

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.