In Microsoft Sql, you can encrypt stored procedures with
CREATE PROCEDURE dbo.foo WITH ENCRYPTION AS BEGIN SELECT 'foo' END
This stops people looking for stored procedure code.
How can I do this in MySql 5.0.x?
You cannot do this in MySQL. See bug # 4210 .
[Edit]: a comment from Leonidas on another answer to this question should be for someone to read, so I quote it here:
. Google, promises, SP-. /, MySQL " " " " ( 4210).
, , .