对于
ERROR 1370 (42000): execute command denied to user ‘james’@‘localhost’ for routine ‘test.coun_add’
这个错误。意思为无权限执行这个存储过程。
解决方法:
登录MySQL -uroot -p
执行授权语句进行授权
以下语句为对用户进行所有数据库\存储过程\等等 拥有执行权限
use mysql
grant execute on . to james@‘localhost’;
flush privileges
以上为新手个人理解,如有错误,感谢指出.