Ir para conteúdo

Featured Replies

Postado

lNao sei muito sob isso então tenham paciência. Estava importando um arquivo sql no localhost mandei executar e deu esse seguinte erro:

Erro

consulta SQL:

--
-- Database: `dxp`
--
-- --------------------------------------------------------
--
-- Estrutura da tabela `accounts`
--
CREATE TABLE IF NOT EXISTS `accounts` (

`id` int( 11 ) NOT NULL ,
`name` varchar( 32 ) NOT NULL DEFAULT '',
`password` varchar( 255 ) NOT NULL ,
`premdays` int( 11 ) NOT NULL DEFAULT '0',
`lastday` int( 10 ) unsigned NOT NULL DEFAULT '0',
`email` varchar( 255 ) NOT NULL DEFAULT '',
`key` varchar( 128 ) NOT NULL DEFAULT '',
`blocked` tinyint( 1 ) NOT NULL DEFAULT '0' COMMENT 'internal usage',
`warnings` int( 11 ) NOT NULL DEFAULT '0',
`group_id` int( 11 ) NOT NULL DEFAULT '1',
`viptime` int( 11 ) NOT NULL DEFAULT '0',
`page_access` int( 11 ) DEFAULT NULL ,
`page_lastday` int( 11 ) DEFAULT NULL ,
`email_new` varchar( 255 ) DEFAULT NULL ,
`email_new_time` int( 15 ) DEFAULT NULL ,
`rlname` varchar( 255 ) DEFAULT NULL ,
`location` varchar( 255 ) DEFAULT NULL ,
`created` int( 16 ) DEFAULT NULL ,
`email_code` varchar( 255 ) DEFAULT NULL ,
`next_email` int( 11 ) DEFAULT NULL ,
`premium_points` int( 11 ) DEFAULT NULL ,
`nickname` char( 48 ) DEFAULT NULL ,
`avatar` char( 48 ) DEFAULT NULL ,
`about_me` text

) ENGINE = InnoDB AUTO_INCREMENT =10 DEFAULT CHARSET = latin1;
 

 

Mensagens do MySQL : 

#1046 - No database selected

Está é a database que eu importei: dxp database.sql

                                                      Problema resolvido, era somente criar o banco de dados.

Editado por edumasterrr
Resolvido. (veja o histórico de edições)

Participe da conversa

Você pode postar agora e se cadastrar mais tarde. Se você tem uma conta, faça o login para postar com sua conta.

Visitante
Responder

Quem Está Navegando 0

  • Nenhum usuário registrado visualizando esta página.

Estatísticas dos Fóruns

  • Tópicos 96.9k
  • Posts 519.8k

Informação Importante

Confirmação de Termo