Jump to content

Recommended Posts

Posted

Bom dia!

Estou com um problema e gostava de saber se alguém me pode ajudar...

Tenho um procedimento a executar no MySQL, que quando ocorrer algum erro, ele faz rollback...mas quando isso acontece não sei que erro ocorreu...

Por isso gostava de guardar o erro numa tabela do MySQL...alguém me pode ajudar a fazer isso?

Eu sei que tem algo a ver com o SQLSTATE...mas não estou a conseguir

Cumprimentos

Posted

Hélio, o MySql server vai fazendo o log dos erros para o seguinte ficheiro (dependendo de onde instalaste o MySql Server):

"C:\ProgramData\MySQL\MySQL Server 5.5\data\db_name.err"

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site you accept our Terms of Use and Privacy Policy. We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.