sgbm Posted August 18, 2011 Report Share Posted August 18, 2011 Alguém já conseguiu converter os DBF para o MySql pela ferramenta dbf2sql.EXE ? Instalei o Mysql, Executei o dbf2sql.EXE, A conexão foi feita, mas quando mando enviar o DBF para o MySql ocorre um Erro: MySql RDD: You have an error in your SQL syntax Chexk the manual that correspons to your MySql server version for the right syntax to use near 'Type=InnoDb' at line 1 O Problema com certeza está em alguma configuração no MySql, mas não estou conseguindo descobrir onde modificar. Quote Link to comment Share on other sites More sharing options...
sgbm Posted August 18, 2011 Author Report Share Posted August 18, 2011 Alguém já conseguiu converter os DBF para o MySql pela ferramenta dbf2sql.EXE ? Instalei o Mysql, Executei o dbf2sql.EXE, A conexão foi feita, mas quando mando enviar o DBF para o MySql ocorre um Erro: MySql RDD: You have an error in your SQL syntax Chexk the manual that correspons to your MySql server version for the right syntax to use near 'Type=InnoDb' at line 1 O Problema com certeza está em alguma configuração no MySql, mas não estou conseguindo descobrir onde modificar. Quote Link to comment Share on other sites More sharing options...
netsys Posted August 18, 2011 Report Share Posted August 18, 2011 Ola 1a.mente: O MySql está instalado na mesma máquina? 2a.mente: Se não, você ligou a opção Enable Remote Access durante a configuração? 3a.mente: Após a instalação, você criou um database? Alberto - SP Fwh + xHb + MySql Quote Link to comment Share on other sites More sharing options...
sgbm Posted August 19, 2011 Author Report Share Posted August 19, 2011 Sim, está instalado na mesma máquina. Sim, criei um database. Quando executa o dbf2sql.exe ele pede: Qual banco de dados: Mysql Tipo de RDD: DBFCDX Host : localhost porta: 3306 Database: Teste use: root Password: xxxx banco principal Escolher Tabelas: Teste.dbf BOTõES: Conectar: Conectado com sucesso em Localhost em um servidor MySQL 5.5.14 Enviar: Ocorre o Erro: MySql RDD: You have an error in your SQL syntax Chexk the manual that correspons to your MySql server version for the right syntax to use near 'Type=InnoDb' at line 1 Quote Link to comment Share on other sites More sharing options...
joaosolution Posted August 19, 2011 Report Share Posted August 19, 2011 sgbm? Sugestão para importar para MySql: // pego a estrutura do DBF #Include "Directry.ch" Use tabela.dbf new via "DBFNTX" vstru := DbStruct() Use // crio o arquivo no MySql DbCreate( "tabela.dbf", vstru, "MYSQL" ) Use tabela.dbf alias tabmy new via "MySql" START TRANSACTION APPEND FROM tabela.dbf VIA "DBFNTX" SQLEXECUTE("COMMIT") END TRANSACTION Use Att João Bosco Contagem/MG FWH 10.6b xHb 1.2.1 WorkShop 4.5 PellesC SQLLIB SQLRDD Quote Link to comment Share on other sites More sharing options...
kleyber Posted August 24, 2011 Report Share Posted August 24, 2011 SGBM, Qual a versão do DBF2SQL que estás usando? Kleyber Derick xHarbour 1.1.0 + FWH 8.02 + xDevStudio + SQLLIB (98) 8162-1301 / (98) 2107-9150 Visite São LuÃs - MA A Ilha dos Amores Quote Link to comment Share on other sites More sharing options...
netsys Posted August 24, 2011 Report Share Posted August 24, 2011 HAHA! Apareceu o "pai da criança" Kleyber, aproveitando o "ensejo".... Tem alguma versão nova do Dbf2Sql para Win 7 A 2.4 que tenho aqui dá um TOO MANY RECURSIVE ERROR HANDL... Abraços Alberto Zamai FWH + xHB + MySQL S.Paulo - SP Quote Link to comment Share on other sites More sharing options...
kleyber Posted August 24, 2011 Report Share Posted August 24, 2011 Opa... Claro que tem Alberto. Vou postar em DICAS. Kleyber Derick xHarbour 1.1.0 + FWH 8.02 + xDevStudio + SQLLIB (98) 8162-1301 / (98) 2107-9150 Visite São LuÃs - MA A Ilha dos Amores Quote Link to comment Share on other sites More sharing options...
kleyber Posted August 24, 2011 Report Share Posted August 24, 2011 Já está em DICAS. E creio que deve resolver o problema do nosso amigo que postou este tópico. Abraços, Kleyber Derick xHarbour 1.1.0 + FWH 8.02 + xDevStudio + SQLLIB (98) 8162-1301 / (98) 2107-9150 Visite São LuÃs - MA A Ilha dos Amores Editado por - kleyber on 24/08/2011 21:30:25 Quote Link to comment Share on other sites More sharing options...
netsys Posted August 24, 2011 Report Share Posted August 24, 2011 Grande Kleyber! Já baixei e usei! Tudo ok! Muito útil a sua ferramenta. Rápida também..."subiu" uma tabela de 700mil registros (cep´s) para um BD remoto em uns 10 min... Só uma dica: Ele tenta gravar em C:\arquivo.dbf e o win7 não deixa. Ai copiei o arquivo como Administrador e deu certo. Parabéns e Obrigado Alberto Zamai Fwh + xHb + MySql S.Paulo - SP Quote Link to comment Share on other sites More sharing options...
Ladinilson Posted August 25, 2011 Report Share Posted August 25, 2011 Testei esta nova versão no meu Seven, esta show de bola e bastante veloz! FWH 8.1 / xHB 1.1.0 / Pelles / xDev Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.