Старый мастер

Профиль
Группа: Участник
Сообщений: 170
Регистрация: 4.12.2009
Репутация: нет Всего: нет
|
Я, как не знающий ничего в SQL запросов кроме некоторых моментов, обращаюсь за помощью. Даю часть кода: Код | Server version 5.0.84 /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; /*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */; /*!40101 SET NAMES utf8 */; /*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */; /*!40103 SET TIME_ZONE='+00:00' */; /*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */; /*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */; /*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */; /*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */;
-- -- Table structure for table `attacks2` --
DROP TABLE IF EXISTS `attacks2`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `attacks2` ( `id` int(10) unsigned NOT NULL auto_increment, `attack_name` varchar(16) NOT NULL default '', `do_what` varchar(16) NOT NULL default '', `magic_number` int(11) NOT NULL default '0', `learned_by` text NOT NULL, `learn_at_level` int(11) NOT NULL default '0', `game` int(11) NOT NULL default '0', PRIMARY KEY (`id`), KEY `id` (`id`) ) ENGINE=MyISAM AUTO_INCREMENT=5408 DEFAULT CHARSET=cp1251; /*!40101 SET character_set_client = @saved_cs_client */;
-- -- Dumping data for table `attacks2` --
LOCK TABLES `attacks2` WRITE; /*!40000 ALTER TABLE `attacks2` DISABLE KEYS */; INSERT INTO `attacks2` VALUES (5407,'Flame','attack',6,'vPet 1',0,1); /*!40000 ALTER TABLE `attacks2` ENABLE KEYS */; UNLOCK TABLES;
-- -- Table structure for table `auctions2` --
DROP TABLE IF EXISTS `auctions2`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `auctions2` ( `id` int(11) NOT NULL auto_increment, `owner` varchar(32) NOT NULL default '', `item_name` varchar(64) NOT NULL default '', `high_bid` int(11) NOT NULL default '0', `high_bidder` varchar(64) NOT NULL default '', `buy_now_price` int(11) NOT NULL default '0', `end_time` int(11) NOT NULL default '0', `min_increment` int(11) NOT NULL default '0', `game` int(11) NOT NULL default '0', `bids` int(11) NOT NULL default '0', PRIMARY KEY (`id`) ) ENGINE=MyISAM AUTO_INCREMENT=5 DEFAULT CHARSET=cp1251; /*!40101 SET character_set_client = @saved_cs_client */;
-- -- Dumping data for table `auctions2` --
LOCK TABLES `auctions2` WRITE; /*!40000 ALTER TABLE `auctions2` DISABLE KEYS */; /*!40000 ALTER TABLE `auctions2` ENABLE KEYS */; UNLOCK TABLES;
-- -- Table structure for table `b2p_battles2` --
DROP TABLE IF EXISTS `b2p_battles2`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `b2p_battles2` ( `id` int(11) NOT NULL auto_increment, `fight_id` int(11) NOT NULL default '0', `pet_owner` int(11) NOT NULL default '0', `pet_id` int(11) NOT NULL default '0', `pet2_id` int(11) NOT NULL default '0', `pet_turn` tinyint(4) NOT NULL default '0', `last_move` int(11) NOT NULL default '0', `my_taunt` varchar(72) NOT NULL default '', `winner` varchar(32) NOT NULL default '', `status_line` text NOT NULL, `damage` int(11) NOT NULL default '0', `defense` int(11) NOT NULL default '0', `game` int(11) NOT NULL default '0', PRIMARY KEY (`id`) ) ENGINE=MyISAM AUTO_INCREMENT=5 DEFAULT CHARSET=cp1251; /*!40101 SET character_set_client = @saved_cs_client */;
-- -- Dumping data for table `b2p_battles2` --
LOCK TABLES `b2p_battles2` WRITE; /*!40000 ALTER TABLE `b2p_battles2` DISABLE KEYS */; /*!40000 ALTER TABLE `b2p_battles2` ENABLE KEYS */; UNLOCK TABLES;
-- -- Table structure for table `b2p_tables2` --
DROP TABLE IF EXISTS `b2p_tables2`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `b2p_tables2` ( `id` int(11) NOT NULL auto_increment, `pet1` int(11) NOT NULL default '0', `pet2` int(11) NOT NULL default '0', `pet1_owner` int(11) NOT NULL default '0', `pet2_owner` int(11) NOT NULL default '0', `min_level` int(11) NOT NULL default '0', `max_level` int(11) NOT NULL default '0', `timestamp` int(11) NOT NULL default '0', `timestamp2` int(11) NOT NULL default '0', `approved` tinyint(4) NOT NULL default '0', `in_progress` tinyint(4) NOT NULL default '0', `game` int(11) NOT NULL default '0', PRIMARY KEY (`id`) ) ENGINE=MyISAM AUTO_INCREMENT=2 DEFAULT CHARSET=cp1251; /*!40101 SET character_set_client = @saved_cs_client */;
-- -- Dumping data for table `b2p_tables2` --
LOCK TABLES `b2p_tables2` WRITE; /*!40000 ALTER TABLE `b2p_tables2` DISABLE KEYS */; /*!40000 ALTER TABLE `b2p_tables2` ENABLE KEYS */; UNLOCK TABLES;
-- -- Table structure for table `bank2` --
DROP TABLE IF EXISTS `bank2`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */;
|
Наконец, код заканчивается этим: Код | Table structure for table `youritems` --
DROP TABLE IF EXISTS `youritems`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `youritems` ( `id` varchar(10) NOT NULL default '', `username` varchar(40) NOT NULL default '', `itemname` varchar(50) NOT NULL default '', `url` varchar(60) NOT NULL default '', `price` varchar(10) NOT NULL default '', `attack` varchar(10) NOT NULL default '', `defense` varchar(10) NOT NULL default '', `heal` varchar(10) NOT NULL default '', `used` varchar(10) NOT NULL default '', `leftz` varchar(10) NOT NULL default '', `freezez` varchar(10) NOT NULL default '', `frozen` varchar(10) NOT NULL default '' ) ENGINE=MyISAM DEFAULT CHARSET=cp1251; /*!40101 SET character_set_client = @saved_cs_client */;
-- -- Dumping data for table `youritems` --
LOCK TABLES `youritems` WRITE; /*!40000 ALTER TABLE `youritems` DISABLE KEYS */; /*!40000 ALTER TABLE `youritems` ENABLE KEYS */; UNLOCK TABLES; /*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */;
/*!40101 SET SQL_MODE=@OLD_SQL_MODE */; /*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */; /*!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */; /*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */; /*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */; /*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */; /*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */;
-- Dump completed on 2010-01-21 12:58:20
|
Это для php-сайта, когда я пытаюсь просто импортировать файл с дампом, мне выдает "доступ запрещен для данного пользователя". Я думаю, тут что то с CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT, а точнее с OLD..... Мне удаляли сайт, а потом восстановили. Можно еще вкратце, что обозначает такой синтакс с собаками, и как так идет приравнивание? Ну а вообще надо сделать, чтобы это заработало, а то переписывать все упоминания этих переменных около двух суток=)
|