LeoneFM 0 Postado Janeiro 17, 2009 Share Postado Janeiro 17, 2009 Downloads necessários Otstriad 1.4.6 OTServ SQL Alterando a senha do phpMyAdmin Instale o Otstriad, logo em seguida verifique se o Otstriad está verde. Clique no botão direito do mause no ícone do Otstriad que está no tray (Do lado do relógio), e vá em xPanel. Coloque na caixa de login os dados: root | 1234 Vá em mudar senha, digite a senha antiga que no caso é 1234, depois digite uma nova senha 2x. Vai aparecer a caixa de login, você digita root|sua senha. Criando um banco de dados Clique no botão direito do mause no ícone do Otstriad que está no tray (Do lado do relógio), e vá em phpMyAdmin. Coloque seu login, o que você alterou no xPanel. Vá em criar banco de dados, digite um nome desejado e clique em Criar. Em seguida clique na guia Import Vá em "Localização do arquivo texto" clique "Arquivo" e selecione o arquivo SQL do Ot. Depois vá em Executar, pronto, já está instalado o banco de dados do OTServ. Configurando A config.lua Acesse o arquivo config.lua do seu OTServ.Procure por: -- MySQL mysqlHost = "localhost" //Não mude mysqlUser = "root" <- Usuário do phpMyAdmin mysqlPass = "1234" <- Senha do phpMyAdmin mysqlDatabase = "otserv" <- Banco de dados mysqlPort = 3306 //Não mude Edite de acordo com suas configurações, salve e feche. Agora ligue o servidor e divirta-se! Link para o comentário https://xtibia.com/forum/topic/105292-sql-instalando-um-banco-de-dados-de-otserv-no-otstriad/ Compartilhar em outros sites More sharing options...
Merchant 0 Postado Janeiro 17, 2009 Share Postado Janeiro 17, 2009 Parabéns, otimo tutorial, prático e bem explicativo. Abraços Link para o comentário https://xtibia.com/forum/topic/105292-sql-instalando-um-banco-de-dados-de-otserv-no-otstriad/#findComment-677831 Compartilhar em outros sites More sharing options...
LeoneFM 0 Postado Janeiro 17, 2009 Autor Share Postado Janeiro 17, 2009 #Merchant Muito obrigado por sua visita e comentário. Link para o comentário https://xtibia.com/forum/topic/105292-sql-instalando-um-banco-de-dados-de-otserv-no-otstriad/#findComment-677834 Compartilhar em outros sites More sharing options...
JBCoisado 0 Postado Janeiro 17, 2009 Share Postado Janeiro 17, 2009 Aprovadíssimo velho, se todos tutoriais fossem iguais aos seus, ninguem teria duvidas em nada! Super Aprovado :smile_positivo: Link para o comentário https://xtibia.com/forum/topic/105292-sql-instalando-um-banco-de-dados-de-otserv-no-otstriad/#findComment-677868 Compartilhar em outros sites More sharing options...
lucasmcs 0 Postado Janeiro 18, 2009 Share Postado Janeiro 18, 2009 Mt bom, aprovado, so que pq no tfs da o seguinte erro quando eu carrego o forgottenserver.sql da dois erros: import.php: Missing parameter: import_type (FAQ 2.8) import.php: Missing parameter: format (FAQ 2.8) E agora a db do ot: CREATE TABLE `groups` ( `id` INT NOT NULL AUTO_INCREMENT, `name` VARCHAR(255) NOT NULL COMMENT 'group name', `flags` BIGINT UNSIGNED NOT NULL DEFAULT 0, `access` INT NOT NULL, `maxdepotitems` INT NOT NULL, `maxviplist` INT NOT NULL, PRIMARY KEY (`id`) ) ENGINE = InnoDB; INSERT INTO `groups` VALUES (3, 'a god', 134788128760, 1, 0, 0); INSERT INTO `groups` VALUES (2, 'a gamemaster', 137438953471, 1, 0, 0); INSERT INTO `groups` VALUES (1, 'player', 0, 0, 0, 0); CREATE TABLE `accounts` ( `id` INT NOT NULL AUTO_INCREMENT, `password` VARCHAR(255) /* VARCHAR(32) for MD5*/ NOT NULL DEFAULT '', `type` INT NOT NULL DEFAULT 1, `premdays` INT NOT NULL DEFAULT 0, `lastday` INT UNSIGNED NOT NULL DEFAULT 0, `key` VARCHAR(20) NOT NULL DEFAULT '0', `email` VARCHAR(255) NOT NULL DEFAULT '', `blocked` TINYINT(1) NOT NULL DEFAULT FALSE, `warnings` INT NOT NULL DEFAULT 0, `group_id` INT NOT NULL DEFAULT 1, PRIMARY KEY (`id`), FOREIGN KEY (`group_id`) REFERENCES `groups` (`id`) ) ENGINE = InnoDB; INSERT INTO `accounts` VALUES (1, '1', 1, 65535, 0, '0', '', 0, 0, 1); CREATE TABLE `players` ( `id` INT NOT NULL AUTO_INCREMENT, `name` VARCHAR(255) NOT NULL, `group_id` INT NOT NULL DEFAULT 1, `account_id` INT NOT NULL DEFAULT 0, `level` INT NOT NULL DEFAULT 1, `vocation` INT NOT NULL DEFAULT 0, `health` INT NOT NULL DEFAULT 150, `healthmax` INT NOT NULL DEFAULT 150, `experience` BIGINT NOT NULL DEFAULT 0, `lookbody` INT NOT NULL DEFAULT 0, `lookfeet` INT NOT NULL DEFAULT 0, `lookhead` INT NOT NULL DEFAULT 0, `looklegs` INT NOT NULL DEFAULT 0, `looktype` INT NOT NULL DEFAULT 136, `lookaddons` INT NOT NULL DEFAULT 0, `maglevel` INT NOT NULL DEFAULT 0, `mana` INT NOT NULL DEFAULT 0, `manamax` INT NOT NULL DEFAULT 0, `manaspent` INT NOT NULL DEFAULT 0, `soul` INT UNSIGNED NOT NULL DEFAULT 0, `town_id` INT NOT NULL DEFAULT 0, `posx` INT NOT NULL DEFAULT 0, `posy` INT NOT NULL DEFAULT 0, `posz` INT NOT NULL DEFAULT 0, `conditions` BLOB NOT NULL, `cap` INT NOT NULL DEFAULT 0, `sex` INT NOT NULL DEFAULT 0, `lastlogin` BIGINT UNSIGNED NOT NULL DEFAULT 0, `lastip` INT UNSIGNED NOT NULL DEFAULT 0, `save` TINYINT(1) NOT NULL DEFAULT 1, `redskull` TINYINT(1) NOT NULL DEFAULT 0, `redskulltime` INT NOT NULL DEFAULT 0, `rank_id` INT NOT NULL DEFAULT 0, `guildnick` VARCHAR(255) NOT NULL DEFAULT '', `lastlogout` BIGINT UNSIGNED NOT NULL DEFAULT 0, `blessings` TINYINT(2) NOT NULL DEFAULT 0, `direction` INT NOT NULL DEFAULT 0 COMMENT 'NOT IN USE BY THE SERVER', `loss_experience` INT NOT NULL DEFAULT '10' COMMENT 'NOT IN USE BY THE SERVER', `loss_mana` INT NOT NULL DEFAULT '10' COMMENT 'NOT IN USE BY THE SERVER', `loss_skills` INT NOT NULL DEFAULT '10' COMMENT 'NOT IN USE BY THE SERVER', `premend` INT NOT NULL DEFAULT 0 COMMENT 'NOT IN USE BY THE SERVER', `online` TINYINT NOT NULL DEFAULT 0, PRIMARY KEY (`id`), KEY (`name`), FOREIGN KEY (`account_id`) REFERENCES `accounts`(`id`) ON DELETE CASCADE, FOREIGN KEY (`group_id`) REFERENCES `groups`(`id`) ) ENGINE = InnoDB; INSERT INTO `players` VALUES (1, 'Account Manager', 1, 1, 1, 0, 150, 150, 0, 0, 0, 0, 0, 110, 0, 0, 0, 0, 0, 0, 0, 50, 50, 7, '', 400, 0, 0, 0, 0, 0, 0, 0, '', 0, 0, 0, 10, 10, 10, 0, 0); CREATE TABLE `bans` ( `type` INT NOT NULL COMMENT 'this field defines if its ip, accountban or namelock', `ip` INT UNSIGNED NOT NULL DEFAULT 0, `mask` INT UNSIGNED NOT NULL DEFAULT 4294967295, `player` INT UNSIGNED NOT NULL DEFAULT 0, `account` INT UNSIGNED NOT NULL DEFAULT 0, `time` INT UNSIGNED NOT NULL DEFAULT 0, `reason_id` INT NOT NULL DEFAULT 0, `action_id` INT NOT NULL DEFAULT 0, `comment` VARCHAR(60) NOT NULL DEFAULT '', `banned_by` INT UNSIGNED NOT NULL DEFAULT 0 ) ENGINE = InnoDB; CREATE TABLE `global_storage` ( `key` INT UNSIGNED NOT NULL, `value` INT NOT NULL, PRIMARY KEY (`key`) ) ENGINE = InnoDB; CREATE TABLE `guilds` ( `id` INT NOT NULL AUTO_INCREMENT, `name` VARCHAR(255) NOT NULL COMMENT 'guild name - nothing else needed here', `ownerid` INT NOT NULL, `creationdata` INT NOT NULL, `motd` VARCHAR(255) NOT NULL, PRIMARY KEY (`id`) ) ENGINE = InnoDB; CREATE TABLE `guild_invites` ( `player_id` INT UNSIGNED NOT NULL DEFAULT 0, `guild_id` INT UNSIGNED NOT NULL DEFAULT 0 ) ENGINE = InnoDB; CREATE TABLE `guild_ranks` ( `id` INT NOT NULL AUTO_INCREMENT, `guild_id` INT NOT NULL COMMENT 'guild', `name` VARCHAR(255) NOT NULL COMMENT 'rank name', `level` INT NOT NULL COMMENT 'rank level - leader, vice, member, maybe something else', PRIMARY KEY (`id`), FOREIGN KEY (`guild_id`) REFERENCES `guilds`(`id`) ON DELETE CASCADE ) ENGINE = InnoDB; CREATE TABLE `house_lists` ( `house_id` INT NOT NULL, `listid` INT NOT NULL, `list` TEXT NOT NULL ) ENGINE = InnoDB; CREATE TABLE `houses` ( `id` INT NOT NULL AUTO_INCREMENT, `owner` INT NOT NULL, `paid` INT UNSIGNED NOT NULL DEFAULT 0, `warnings` TEXT NOT NULL, PRIMARY KEY (`id`) ) ENGINE = InnoDB; CREATE TABLE `player_deaths` ( `player_id` INT NOT NULL, `time` BIGINT UNSIGNED NOT NULL DEFAULT 0, `level` INT NOT NULL DEFAULT 1, `killed_by` VARCHAR(255) NOT NULL, `is_player` TINYINT(1) NOT NULL DEFAULT 1, FOREIGN KEY (`player_id`) REFERENCES `players`(`id`) ON DELETE CASCADE ) ENGINE = InnoDB; CREATE TABLE `player_depotitems` ( `player_id` INT NOT NULL, `depot_id` INT NOT NULL DEFAULT 0, `sid` INT NOT NULL COMMENT 'any given range eg 0-100 will be reserved for depot lockers and all > 100 will be then normal items inside depots', `pid` INT NOT NULL DEFAULT 0, `itemtype` INT NOT NULL, `count` INT NOT NULL DEFAULT 0, `attributes` BLOB NOT NULL, FOREIGN KEY (`player_id`) REFERENCES `players`(`id`) ON DELETE CASCADE, KEY (`player_id`, `depot_id`), UNIQUE KEY (`player_id`, `sid`) ) ENGINE = InnoDB; CREATE TABLE `player_items` ( `player_id` INT NOT NULL DEFAULT 0, `pid` INT NOT NULL DEFAULT 0, `sid` INT NOT NULL DEFAULT 0, `itemtype` INT NOT NULL DEFAULT 0, `count` INT NOT NULL DEFAULT 0, `attributes` BLOB NOT NULL, FOREIGN KEY (`player_id`) REFERENCES `players`(`id`) ON DELETE CASCADE ) ENGINE = InnoDB; CREATE TABLE `player_skills` ( `player_id` INT NOT NULL DEFAULT 0, `skillid` tinyint(4) NOT NULL DEFAULT 0, `value` INT UNSIGNED NOT NULL DEFAULT 0, `count` INT UNSIGNED NOT NULL DEFAULT 0, FOREIGN KEY (`player_id`) REFERENCES `players`(`id`) ON DELETE CASCADE ) ENGINE = InnoDB; CREATE TABLE `player_spells` ( `player_id` INT NOT NULL, `name` VARCHAR(255) NOT NULL, FOREIGN KEY (`player_id`) REFERENCES `players`(`id`) ON DELETE CASCADE ) ENGINE = InnoDB; CREATE TABLE `player_storage` ( `player_id` INT NOT NULL DEFAULT 0, `key` INT UNSIGNED NOT NULL DEFAULT 0, `value` INT NOT NULL DEFAULT 0, FOREIGN KEY (`player_id`) REFERENCES `players`(`id`) ON DELETE CASCADE ) ENGINE = InnoDB; CREATE TABLE `player_viplist` ( `player_id` INT NOT NULL COMMENT 'id of player whose viplist entry it is', `vip_id` INT NOT NULL COMMENT 'id of target player of viplist entry', FOREIGN KEY (`player_id`) REFERENCES `players`(`id`) ON DELETE CASCADE, FOREIGN KEY (`vip_id`) REFERENCES `players`(`id`) ON DELETE CASCADE ) ENGINE = InnoDB; CREATE TABLE `tiles` ( `id` INT NOT NULL AUTO_INCREMENT, `x` INT NOT NULL, `y` INT NOT NULL, `z` INT NOT NULL, PRIMARY KEY(`id`) ) ENGINE = InnoDB; CREATE TABLE `tile_items` ( `tile_id` INT NOT NULL, `sid` INT NOT NULL, `pid` INT NOT NULL DEFAULT 0, `itemtype` INT NOT NULL, `count` INT NOT NULL DEFAULT 0, `attributes` BLOB NOT NULL, FOREIGN KEY (`tile_id`) REFERENCES `tiles` (`id`) ON DELETE CASCADE, INDEX (`sid`) ) ENGINE = InnoDB; DELIMITER | END| CREATE TRIGGER `ondelete_guilds` BEFORE DELETE ON `guilds` FOR EACH ROW BEGIN UPDATE `players` SET `guildnick` = '', `rank_id` = 0 WHERE `rank_id` IN (SELECT `id` FROM `guild_ranks` WHERE `guild_id` = OLD.`id`); END| CREATE TRIGGER `ondelete_players` BEFORE DELETE ON `players` FOR EACH ROW BEGIN DELETE FROM `bans` WHERE `type` = 2 AND `player` = OLD.`id`; UPDATE `houses` SET `owner` = 0 WHERE `owner` = OLD.`id`; END| CREATE TRIGGER `oncreate_guilds` AFTER INSERT ON `guilds` FOR EACH ROW BEGIN INSERT INTO `guild_ranks` (`name`, `level`, `guild_id`) VALUES ('the Leader', 3, NEW.`id`); INSERT INTO `guild_ranks` (`name`, `level`, `guild_id`) VALUES ('a Vice-Leader', 2, NEW.`id`); INSERT INTO `guild_ranks` (`name`, `level`, `guild_id`) VALUES ('a Member', 1, NEW.`id`); END| CREATE TRIGGER `oncreate_players` AFTER INSERT ON `players` FOR EACH ROW BEGIN INSERT INTO `player_skills` (`player_id`, `skillid`, `value`) VALUES (NEW.`id`, 0, 10); INSERT INTO `player_skills` (`player_id`, `skillid`, `value`) VALUES (NEW.`id`, 1, 10); INSERT INTO `player_skills` (`player_id`, `skillid`, `value`) VALUES (NEW.`id`, 2, 10); INSERT INTO `player_skills` (`player_id`, `skillid`, `value`) VALUES (NEW.`id`, 3, 10); INSERT INTO `player_skills` (`player_id`, `skillid`, `value`) VALUES (NEW.`id`, 4, 10); INSERT INTO `player_skills` (`player_id`, `skillid`, `value`) VALUES (NEW.`id`, 5, 10); INSERT INTO `player_skills` (`player_id`, `skillid`, `value`) VALUES (NEW.`id`, 6, 10); END| DELIMITER; Link para o comentário https://xtibia.com/forum/topic/105292-sql-instalando-um-banco-de-dados-de-otserv-no-otstriad/#findComment-678228 Compartilhar em outros sites More sharing options...
LeoneFM 0 Postado Janeiro 18, 2009 Autor Share Postado Janeiro 18, 2009 #XoxoTai Faça o seguinte, abra o arquivo SQL é copie tudo, vá no phpMyAdmin, em SQL, cole-o e clique em Executar. #JBCoisado Muito obrigado por sua visita e comentário. Link para o comentário https://xtibia.com/forum/topic/105292-sql-instalando-um-banco-de-dados-de-otserv-no-otstriad/#findComment-678234 Compartilhar em outros sites More sharing options...
lucasmcs 0 Postado Janeiro 18, 2009 Share Postado Janeiro 18, 2009 #XoxoTai Faça o seguinte, abra o arquivo SQL é copie tudo, vá no phpMyAdmin, em SQL, cole-o e clique em Executar. #JBCoisado Muito obrigado por sua visita e comentário. Mesmo erro "/, e outra pq no xampp quando eu vou em security msm sendo hoster ele fala que eu nao tenho acesso? eu tentei usar o xampp 1.7.0 no vista basico 32bit Link para o comentário https://xtibia.com/forum/topic/105292-sql-instalando-um-banco-de-dados-de-otserv-no-otstriad/#findComment-678237 Compartilhar em outros sites More sharing options...
LeoneFM 0 Postado Janeiro 18, 2009 Autor Share Postado Janeiro 18, 2009 #XoxoTai Aqui em caso também já aconteceu isso, eu tive que formatar o computador, nunca mais ou até hoje me deu problemas. Link para o comentário https://xtibia.com/forum/topic/105292-sql-instalando-um-banco-de-dados-de-otserv-no-otstriad/#findComment-678239 Compartilhar em outros sites More sharing options...
Jvchequer 63 Postado Janeiro 21, 2009 Share Postado Janeiro 21, 2009 Bom.... Aprovado ;D Link para o comentário https://xtibia.com/forum/topic/105292-sql-instalando-um-banco-de-dados-de-otserv-no-otstriad/#findComment-680900 Compartilhar em outros sites More sharing options...
Hirani 0 Postado Janeiro 26, 2009 Share Postado Janeiro 26, 2009 Bem..qnd eu vou instalar esse programa "Otstriad" vai td bem..mas qnd termina o computadorzinho..nao fik verde..eu cliko pra fikr verde mas nao fik..nao sei se tem haver com o XAMPP, mas qnd eu tento instalar o xampp ele diz q algumas portas ja estavam abertas...e n pode instalar...algo assim....gostaria de saber como resolver esse problema..pois na verdade eu tenho um OT q os dados sao salvos em SQLITE.no meu proprio pc...mas como tmp isso esta fiknd eu diria que pesado...e qnd dou save demora muito mas muito mesmo =/ por isso gostaria de mudar.. Obrigado. Link para o comentário https://xtibia.com/forum/topic/105292-sql-instalando-um-banco-de-dados-de-otserv-no-otstriad/#findComment-684206 Compartilhar em outros sites More sharing options...
Deeleon 0 Postado Janeiro 29, 2009 Share Postado Janeiro 29, 2009 import.php: Missing parameter: import_type (FAQ 2.8) import.php: Missing parameter: format (FAQ 2.8) msm erro aki. Link para o comentário https://xtibia.com/forum/topic/105292-sql-instalando-um-banco-de-dados-de-otserv-no-otstriad/#findComment-686329 Compartilhar em outros sites More sharing options...
ezikielfilho 0 Postado Fevereiro 9, 2009 Share Postado Fevereiro 9, 2009 import.php: Missing parameter: import_type (FAQ 2.8) import.php: Missing parameter: format (FAQ 2.8) mesmo erro aki[2] Link para o comentário https://xtibia.com/forum/topic/105292-sql-instalando-um-banco-de-dados-de-otserv-no-otstriad/#findComment-693460 Compartilhar em outros sites More sharing options...
walckerstriker 0 Postado Fevereiro 14, 2009 Share Postado Fevereiro 14, 2009 @ Tópico Muito bem feito, explicadíssimo com imagens, etc. Se você seguir o passo - a - passo, com toda certeza você terá sua database feita, e seu OTServer funcionando. @ LeoneFM Bem, como a maioria está apresentando Erro na hora de importar a database, você poderia dar (ou procurar) uma solução simples e ágil, para que isso não aconteça novamente. Como o dos outros usuários, o meu também está dando ERRO. import.php: Missing parameter: import_type (FAQ 2.8)import.php: Missing parameter: format (FAQ 2.8) Estarei aguardando uma resposta/ajuda, como todos os outros usuários que aqui postaram. PS: Sei que o erro não é sua culpa, mas poderia fazer algo por nós né? :huh: ~ Walcker Striker . Link para o comentário https://xtibia.com/forum/topic/105292-sql-instalando-um-banco-de-dados-de-otserv-no-otstriad/#findComment-695754 Compartilhar em outros sites More sharing options...
NesCauU 0 Postado Setembro 30, 2009 Share Postado Setembro 30, 2009 da este error pq o otstriad so suporta arquivos de 2kb para importar e o sql dos ot é 15kb intaum como botar um server sql pelo otstriad? aki tbm nao ta dando ;/ Link para o comentário https://xtibia.com/forum/topic/105292-sql-instalando-um-banco-de-dados-de-otserv-no-otstriad/#findComment-796604 Compartilhar em outros sites More sharing options...
seufilhodumaputa 0 Postado Novembro 30, 2009 Share Postado Novembro 30, 2009 na moral, esse programinha e uma bosta... mto lixo mesmo, so importa database de 2,04 kb VTNC q coisa ridicula agora me diz, onde q tu vai encontra um otserv com uma DB de 2kb a se lasca cara... Link para o comentário https://xtibia.com/forum/topic/105292-sql-instalando-um-banco-de-dados-de-otserv-no-otstriad/#findComment-820718 Compartilhar em outros sites More sharing options...
Posts Recomendados