Jump to content
Fórum Script Brasil
  • 0

Erro ao criar PROCEDURE


Question

Olá,

Quando tento executar um comando para criar uma PROCEDURE, este erro aparece: "Error Code: 1558. Column count of mysql.proc is wrong. Expected 21, found 20. Created with MariaDB 100108, now running 100411. Please use mysql_upgrade to fix this error"

Pesquisei e executei este comando: 

sudo mysql_upgrade -u root -p

Que me retornou este erro: "mysql_upgrade: Got error: 2002: Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2) while connecting to the MySQL server. Upgrade process encountered error and will not continue."

Como posso resolvê-lo?

Obrigada.

Link to post
Share on other sites

2 answers to this question

Recommended Posts

  • 0

Este erro informa que você informou 20 campos mas que ele espera 21. Por isso não deixa gerar a procedure.

Reveja seu código.

 

Link to post
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
Answer this question...

×   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.



  • Forum Statistics

    • Total Topics
      148905
    • Total Posts
      644996
×
×
  • Create New...