sábado, 30 de julho de 2016

Resetar senha root MySql 5.7 no MacOSX El Capitan

Se você esqueceu a senha de root do MySQL, ou quer quebrá-la...

Pare o serviço do MySql nas preferências do OSX, ou com o comando:
sudo /usr/local/mysql/support-files/mysql.server stop      

Inicie o modo Safe:
sudo /usr/local/mysql/bin/mysqld_safe --skip-grant-tables   

Agora você terá o modo Safe em execução, deixe ele rodando, abra outra janela do terminal, e digite:
sudo /usr/local/mysql/bin/mysql mysql     

O terminal do MySql será aberto, faça reset no terminal da seguinte forma:
update user set authentication_string=password('123') where user='root';     

Uma vez que você tenha feito isso basta sair, digite "exit;", depois fechar a janela de execução do modo safe, e reiniciar o servidor MySQL no modo normal. Pode reiniciar nas preferências do OSX, ou com o comando:

quinta-feira, 6 de novembro de 2014

NoSuchMethodException during deploying


Problema: Ao mandar limpar e construir (deploying) no NetBeans apareceu a exceção NoSuchMethodException

Motivo: No meu caso, existiam bibliotecas repetidas com versões diferentes

Solução: Removi umas das bibliotecas repetidas, e realizei o limpar e construir (deploying) com sucesso.

sexta-feira, 23 de agosto de 2013

Disable cache in Node Controller (NC) - Eucalyptus

How I disable or enable cache in NC?

Take a look at the parameter NC_CACHE_SIZE in eucalyptus.conf on the NC. Any value below 10 will disable caching.
By default neither NC_CACHE_SIZE nor NC_WORK_SIZE are set, which causes the NC to pick values based on disk space available when NC is first started. If you end up setting NC_CACHE_SIZE, I recommend setting NC_WORK_SIZE, too, so that you know exactly what to expect.

How I clean the cache in NC?
 
To clean out the cache, you must terminate all running instances on the NC (since the cache is used as part of a copy-on-write clone of the disk image of the instance) first. Then you can just ‘rm -rf’ everything in $INSTANCE_PATH/eucalyptus/cache directory.


restart the two hosts: frontend and node controller 
:)