Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I am stumped, and was hoping someone here would have a quick and easy answer. I did a fresh install of MySQL 5.5 and am trying to pass parameters into a stored procedure. The parameter values aren't being read by the stored procedure. MySQL doesn't throw an error and processes the code with null parameters. Here is the code:


CREATE DEFINER=`root`@`%` PROCEDURE `testing`(IN parameter INTEGER)
    UPDATE table_name SET valueToChange = 'Test' WHERE mainID = @parameter;

And here is the query I'm using to call it:

USE database_name; CALL testing(72);

Can anyone help?

share|improve this question

I knew it was something basic... I removed the "@" symbol from the variable and everything works perfectly :) Thanks to everyone that looked into this for me!

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.