-2

Hi this is my routine in mysqls it working in server but not working in local machine..

CREATE DEFINER=`root`@`localhost` PROCEDURE `ClassWise_Progress`(IN CLS INT, IN EXM INT)
BEGIN


  // some stuff

END

MySQL error 1449: The user specified as a definer does not exist

Community
  • 1
  • 1
Surendra
  • 35
  • 1
  • 1
  • 9

1 Answers1

1

You are using the backtick sign ` as a delimiter, which is used in MySQL to denote names of fields, tables an such. Change it to a single quote ':

CREATE DEFINER='root'@'localhost' PROCEDURE 'ClassWise_Progress' (IN CLS INT, IN EXM INT)

This way MySQL should interpret the strings correctly.

Gerald Schneider
  • 17,416
  • 9
  • 60
  • 78