Database Errors While Moving from localhost to webhost
-
I am trying to move my site to my webhost. I have downloaded the database and edited it to direct to my new URL. When I go to import the database, I get these errors:
Error
SQL query:—
— Database:tranquility
—
— ——————————————————–
—
— Table structure for tabletran_assets
—
CREATE TABLE IF NOT EXISTStran_assets(idINT( 10 ) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT ‘Primary Key’,
parent_idINT( 11 ) NOT NULL DEFAULT ‘0’ COMMENT ‘Nested set parent.’,
lftINT( 11 ) NOT NULL DEFAULT ‘0’ COMMENT ‘Nested set lft.’,
rgtINT( 11 ) NOT NULL DEFAULT ‘0’ COMMENT ‘Nested set rgt.’,
levelINT( 10 ) UNSIGNED NOT NULL COMMENT ‘The cached level in the nested tree.’,
nameVARCHAR( 50 ) NOT NULL COMMENT ‘The unique name for the asset.\n’,
titleVARCHAR( 100 ) NOT NULL COMMENT ‘The descriptive title for the asset.’,
rulesVARCHAR( 5120 ) NOT NULL COMMENT ‘JSON encoded access control.’,
PRIMARY KEY (id) ,
UNIQUE KEYidx_asset_name(name) ,
KEYidx_lft_rgt(lft,rgt) ,
KEYidx_parent_id(parent_id)
) ENGINE = INNODB DEFAULT CHARSET = utf8 AUTO_INCREMENT =174;MySQL said:
#1046 – No database selected
I hope someone can help me..thanks in advance
The topic ‘Database Errors While Moving from localhost to webhost’ is closed to new replies.