Jump to content
Fivewin Brasil

Importar dados do sistema GrandChef


marcioe

Recommended Posts

Olá amigos,

Pegamos um cliente de lanchonete que usava o sistema GrandChef, com banco de dados MYSQL que está instalado aqui nesta pasta   C:\Program Files\GrandChef\Servidor\MySQL, porem não temos a senha de root, e não estou conseguindo acessar, será que algum colega poderia me ajudar.

Link to comment
Share on other sites

Até onde eu sei, se o cliente consultar um advogado, vai reaver o acesso ao banco de dados, pois as informações não são da empresa que fez o software, a principio é a única solução que vejo. Infelizmente essas empresas de software fazem isso para justamente travar o cliente e de certa forma chantagear, mostrando como seria complicado ter que começar tudo de novo.

Link to comment
Share on other sites

Pode tentar trocar a senha do root:

- entre no servidor como administrador
- pare o servidor MySQL se ele estiver em execução. Se tiver rodando como serviço use o gerenciador de serviços se não use o gerenciador de tarefas. 
- crie um arquivo de texto com a instrução:
MySQL 5.7.6 e posterior: ALTER USER 'root'@'localhost' IDENTIFIED BY 'a_nova_senha_que quer_usar';
MySQL 5.7.5 e anterior: SET PASSWORD FOR 'root'@'localhost' = PASSWORD('a_nova_senha_que quer_usar');
Não esqueça o ; no final da linha.
- salve o arquivo. C:\my-reset.TXT
- va para a pasta bin do mysql
- digite: mysqld --init-file=C:\\my-reset.TXT

pare o mysql de novo e reinicie normalmente. 

Link to comment
Share on other sites

Amiguinhos,

 

Não desprezando a dica do nosso amigo ADutheil mas vou diexar outra aqui. Salve o conteúdo em mysql_reset_root.bat

@echo off
echo USE mysql; >resetroot.sql
echo. >>resetroot.sql
echo REPLACE INTO user VALUES ('localhost', 'root', '', 'Y', 'Y', 'Y', 'Y', 'Y', 'Y', 'Y', 'Y', 'Y', 'Y', 'Y', 'Y', 'Y', 'Y', 'Y', 'Y', 'Y', 'Y', 'Y', 'Y', 'Y', 'Y', 'Y', 'Y', 'Y', 'Y', 'Y', 'Y', 'Y', '', '', '', '', 0, 0, 0, 0, '', ''); >>resetroot.sql
echo REPLACE INTO user VALUES ('%', 'root', '', 'Y', 'Y', 'Y', 'Y', 'Y', 'Y', 'Y', 'Y', 'Y', 'Y', 'Y', 'Y', 'Y', 'Y', 'Y', 'Y', 'Y', 'Y', 'Y', 'Y', 'Y', 'Y', 'Y', 'Y', 'Y', 'Y', 'Y', 'Y', 'Y', '', '', '', '', 0, 0, 0, 0, '', ''); >>resetroot.sql

\mysql\bin\mysqld.exe --no-defaults --bind-address=127.0.0.1 --bootstrap --console --standalone <resetroot.sql >nul
del resetroot.sql

echo Parando MySQL...
net stop mysql

echo Abrinndo MySQL...
net start mysql

Faça os testes com todas as dicas marcioe e dê um feedback para nós.

Link to comment
Share on other sites

 

Amiguinhos,

 

Não desprezando a dica do nosso amigo ADutheil mas vou diexar outra aqui. Salve o conteúdo em mysql_reset_root.bat


@echo off
echo USE mysql; >resetroot.sql
echo. >>resetroot.sql
echo REPLACE INTO user VALUES ('localhost', 'root', '', 'Y', 'Y', 'Y', 'Y', 'Y', 'Y', 'Y', 'Y', 'Y', 'Y', 'Y', 'Y', 'Y', 'Y', 'Y', 'Y', 'Y', 'Y', 'Y', 'Y', 'Y', 'Y', 'Y', 'Y', 'Y', 'Y', 'Y', 'Y', 'Y', '', '', '', '', 0, 0, 0, 0, '', ''); >>resetroot.sql
echo REPLACE INTO user VALUES ('%', 'root', '', 'Y', 'Y', 'Y', 'Y', 'Y', 'Y', 'Y', 'Y', 'Y', 'Y', 'Y', 'Y', 'Y', 'Y', 'Y', 'Y', 'Y', 'Y', 'Y', 'Y', 'Y', 'Y', 'Y', 'Y', 'Y', 'Y', 'Y', 'Y', 'Y', '', '', '', '', 0, 0, 0, 0, '', ''); >>resetroot.sql

\mysql\bin\mysqld.exe --no-defaults --bind-address=127.0.0.1 --bootstrap --console --standalone <resetroot.sql >nul
del resetroot.sql

echo Parando MySQL...
net stop mysql

echo Abrinndo MySQL...
net start mysql

Faça os testes com todas as dicas marcioe e dê um feedback para nós.

Pelo Visto o que o Amigo postou rodou sem erros, tive que mudar o caminho do BAT

@echo off
echo USE mysql; >resetroot.sql
echo. >>resetroot.sql
echo REPLACE INTO user VALUES ('localhost', 'root', '', 'Y', 'Y', 'Y', 'Y', 'Y', 'Y', 'Y', 'Y', 'Y', 'Y', 'Y', 'Y', 'Y', 'Y', 'Y', 'Y', 'Y', 'Y', 'Y', 'Y', 'Y', 'Y', 'Y', 'Y', 'Y', 'Y', 'Y', 'Y', 'Y', '', '', '', '', 0, 0, 0, 0, '', ''); >>resetroot.sql
echo REPLACE INTO user VALUES ('%', 'root', '', 'Y', 'Y', 'Y', 'Y', 'Y', 'Y', 'Y', 'Y', 'Y', 'Y', 'Y', 'Y', 'Y', 'Y', 'Y', 'Y', 'Y', 'Y', 'Y', 'Y', 'Y', 'Y', 'Y', 'Y', 'Y', 'Y', 'Y', 'Y', 'Y', '', '', '', '', 0, 0, 0, 0, '', ''); >>resetroot.sql
C:\Program Files\GrandChef\Servidor\MySQL\bin\mysqld.exe --no-defaults --bind-address=127.0.0.1 --bootstrap --console --standalone <resetroot.sql >nul
del resetroot.sql

echo Parando MySQL...
net stop mysql

echo Abrinndo MySQL...
net start mysql

C:\Program Files\GrandChef\Servidor\MySQL\bin\mysqld.exe 

xxxxxxxxx.jpg?1555351858

Agora como eu o Registraria para abrir as tabelas

xxxxxxxxx.jpg?1555351964

 

 

 

 

 

Link to comment
Share on other sites

Olá a Todos os amigos,
Muito obrigado pelo empenho em me ajudar, mas ainda não consegui acesso as tabelas

Caso queriam baixar o programa para poder fazer o teste, segue o link 

https://www.grandchef.com.br/downloads/grandchef

Ele cria um serviço específico

="C:\Program Files\GrandChef\Servidor\MySQL\my.ini" GrandChef.MySQL

GRAND_CHEF.jpg?1555929966

 

Amigo, eu Fiz a mudança

@echo off
echo USE mysql; >resetroot.sql
echo. >>resetroot.sql
echo REPLACE INTO user VALUES ('localhost', 'root', '', 'Y', 'Y', 'Y', 'Y', 'Y', 'Y', 'Y', 'Y', 'Y', 'Y', 'Y', 'Y', 'Y', 'Y', 'Y', 'Y', 'Y', 'Y', 'Y', 'Y', 'Y', 'Y', 'Y', 'Y', 'Y', 'Y', 'Y', 'Y', 'Y', '', '', '', '', 0, 0, 0, 0, '', ''); >>resetroot.sql
echo REPLACE INTO user VALUES ('%', 'root', '', 'Y', 'Y', 'Y', 'Y', 'Y', 'Y', 'Y', 'Y', 'Y', 'Y', 'Y', 'Y', 'Y', 'Y', 'Y', 'Y', 'Y', 'Y', 'Y', 'Y', 'Y', 'Y', 'Y', 'Y', 'Y', 'Y', 'Y', 'Y', 'Y', '', '', '', '', 0, 0, 0, 0, '', ''); >>resetroot.sql
C:\"Program Files"\GrandChef\Servidor\MySQL\bin\mysqld.exe --no-defaults --bind-address=127.0.0.1 --bootstrap --console --standalone <resetroot.sql >nul
del resetroot.sql

echo Parando MySQL...
net stop mysql

echo Abrinndo MySQL...
net start mysql

Rodei, mas dá esse monte de informçao


C:\Arquivos de Programas\GRANDCHEF\Servidor\MySQL>mysql_reset_root
2019-04-22 07:48:41 0 [Warning] TIMESTAMP with implicit DEFAULT value is deprecated. Please use --explicit_defaults_for_timestamp server option (see documentation for more details).
2019-04-22 07:48:41 0 [Note] Ignoring --secure-file-priv value as server is running with --bootstrap.
2019-04-22 07:48:41 0 [Note] C:\Program Files\GrandChef\Servidor\MySQL\bin\mysqld.exe (mysqld 5.6.43) starting as process 2416 ...
2019-04-22 07:48:41 2416 [Note] Plugin 'FEDERATED' is disabled.
2019-04-22 07:48:41 2416 [Note] InnoDB: Using atomics to ref count buffer pool pages
2019-04-22 07:48:41 2416 [Note] InnoDB: The InnoDB memory heap is disabled
2019-04-22 07:48:41 2416 [Note] InnoDB: Mutexes and rw_locks use Windows interlocked functions
2019-04-22 07:48:41 2416 [Note] InnoDB: Memory barrier is not used
2019-04-22 07:48:41 2416 [Note] InnoDB: Compressed tables use zlib 1.2.11
2019-04-22 07:48:41 2416 [Note] InnoDB: Not using CPU crc32 instructions
2019-04-22 07:48:41 2416 [Note] InnoDB: Initializing buffer pool, size = 128.0M
2019-04-22 07:48:41 2416 [Note] InnoDB: Completed initialization of buffer pool
2019-04-22 07:48:41 2416 [ERROR] InnoDB: .\ibdata1 can't be opened in read-write mode
2019-04-22 07:48:41 2416 [ERROR] InnoDB: The system tablespace must be writable!
2019-04-22 07:48:41 2416 [ERROR] Plugin 'InnoDB' init function returned error.
2019-04-22 07:48:41 2416 [ERROR] Plugin 'InnoDB' registration as a STORAGE ENGINE failed.
2019-04-22 07:48:41 2416 [ERROR] Unknown/unsupported storage engine: InnoDB
2019-04-22 07:48:41 2416 [ERROR] Aborting

2019-04-22 07:48:41 2416 [Note] Binlog end
2019-04-22 07:48:41 2416 [Note] C:\Program Files\GrandChef\Servidor\MySQL\bin\mysqld.exe: Shutdown complete

Parando MySQL...
O serviço de MySQL está sendo finalizado .
O serviço de MySQL foi finalizado com êxito.

Abrinndo MySQL...
O serviço de MySQL está sendo iniciado.
O serviço de MySQL foi iniciado com êxito.


C:\Arquivos de Programas\GRANDCHEF\Servidor\MySQL>

 

 

 

Amiguinhos

marcioe

Acrescente aspas aos caminhos que contém espaços assim:


C:\"Program Files"\GrandChef\Servidor\MySQL\bin

 

 

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...