Jump to content
Fórum Script Brasil
  • 0

Erro ao chamar procedure


rafaelwertz
 Share

Question

Boa tarde!

Tenho a seguinte procedure

DELIMITER $$
 
CREATE DEFINER=`usuario`@`ip` PROCEDURE `banco_de_talentos_export`()
SQL SECURITY DEFINER
BEGIN
 
select * from tabela
 
 
 
INTO OUTFILE '//myserver/public/bases_site/export_bt.csv'
FIELDS TERMINATED BY ','
ENCLOSED BY '"'
ESCAPED BY '\\'
LINES TERMINATED BY '\n';
 
END;
Consegui criar a procedure, mas quando chamo (call procedure...) , recebo o erro 1045. Access denied for [email protected] (Use password: YES)

Como posso resolver isso??

Edited by Denis Courcy
código sql entre codes
Link to comment
Share on other sites

1 answer to this question

Recommended Posts

  • 0

de o seguinte comando para autorizar o usuario a usar a procedure:

GRANT EXECUTE ON PROCEDURE `NomeDoBancoDeDados`.`banco_de_talentos_export` TO `usuario`@`ip`;
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
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.

 Share

  • Forum Statistics

    • Total Topics
      149.8k
    • Total Posts
      646.6k
×
×
  • Create New...