Help in uploading .sql
#1

Need Help to import sql database .

everytime i do it it they ,

Код:
Error
SQL query:




--
-- Database: `ngrp`
--

-- --------------------------------------------------------

--
-- Table structure for table `accounts`
--

CREATE TABLE IF NOT EXISTS `accounts` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `Online` int(11) NOT NULL DEFAULT '0',
  `UpdateDate` timestamp NULL DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP,
  `RegiDate` datetime DEFAULT NULL,
  `LastLogin` datetime DEFAULT NULL,
  `Username` varchar(32) NOT NULL DEFAULT '',
  `Key` varchar(256) NOT NULL DEFAULT '',
  `Email` varchar(256) NOT NULL DEFAULT '',
  `IP` varchar(32) NOT NULL DEFAULT '0.0.0.0',
  `SecureIP` varchar(32) NOT NULL DEFAULT '0.0.0.0',
  `Registered` int(11) NOT NULL DEFAULT '0',
  `ConnectedTime` int(11) NOT NULL DEFAULT '0',
  `Sex` int(11) NOT NULL DEFAULT '1',
  `Age` int(11) NOT NULL DEFAULT '18',
  `BirthDate` date NOT NULL DEFAULT '0000-00-00',
  `Band` int(11) NOT NULL DEFAULT '0',
  `PermBand` int(11) NOT NULL DEFAULT '0',
  `Warnings` int(11) NOT NULL DEFAULT '0',
  `Disabled` int(11)[...]
MySQL said: Documentation

#1046 - No database selected
Reply
#2

#1046 - No database selected

Looks like you are creating a table called 'accounts', but do you have a database you are uploading to? Where is your MySQL hosted, how are you importing it?
Reply
#3

you seem to be missing a "mysql_select_db" like line before...
Reply
#4

Quote:
Originally Posted by Rizer
Посмотреть сообщение
Need Help to import sql database .

Код:
-- Database: `ngrp`
Yeah well, good luck with that.
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)