SA-MP Forums Archive
SQL error when I import - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: SQL error when I import (/showthread.php?tid=461062)



SQL error when I import - SpringValeRPG - 31.08.2013

Erreur
Requкte SQL :




--
-- Base de donnйes: `gta`
--

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

--
-- Structure de la table `bans`
--

CREATE TABLE IF NOT EXISTS `bans` (
`Admin` varchar(24) NOT NULL,
`Player` varchar(24) NOT NULL,
`Ip` varchar(17) NOT NULL,
`Reason` varchar(70) NOT NULL,
`Time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP
) ENGINE=MyISAM DEFAULT CHARSET=latin1;
MySQL a rйpondu:

#1046 - No database selected


Re: SQL error when I import - Emmet_ - 31.08.2013

You have to select a database at the mid-right section of the screen, like in this picture:



Then try importing and executing your queries.