sql database error when import
#1

hey,i already create database via cpanel
and re-write the database name on sql file
but its still error

Код:
Error

SQL query:

--
-- Database: `savserve_ufx`
--
-- --------------------------------------------------------
--
-- Table structure for table `banlog`
--
CREATE TABLE IF NOT EXISTS `banlog` (
`Name` varchar( 24 ) NOT NULL ,
`pBannedReason` varchar( 128 ) NOT NULL ,
`pBannedBy` varchar( 24 ) NOT NULL ,
`pTime` varchar( 255 ) NOT NULL ,
`pIPBanned` varchar( 16 ) NOT NULL ,
`pAccountLock` int( 11 ) NOT NULL
) ENGINE = InnoDB DEFAULT CHARSET = latin1;

MySQL said: Documentation
#1046 - No database selected
Reply
#2

Are you sure the database exists? It seems to be it doesn't.

You have to tell mysql to use a database and if it doesn't exist you have to create it. Something like:

pawn Код:
CREATE DATABASE database;
USE database;
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)