MySQL Stored Procedures

All Sun Server Hosting clients can use MySQL stored procedures and routines on their web hosting accounts.

To use stored procedures, you should first create a database and add a database user to it. Make sure that you select the "ALL PRIVILEGES" option when you add the user to the database.

Then you should open cPanel > PhpMyAdmin, navigate to your database, open the SQL tag and paste the stored procedure code.

Comprehensive details on MySQL stored procedures and their syntax can be found in the MySQL5 official documentation:

http://dev.mysql.com/doc/refman/5.1/en/stored-routines.html

 

** Please note you do not need to specify the DEFINER variable when running your code in PhpMyAdmin **

 
  • VPS
  • 0 Користувачі, які знайшли це корисним
Ця відповідь Вам допомогла?

Схожі статті

Why does it take a few hours to provision my VPS?

When we provision a VPS for a client we take the time up front to secure and optimize that VPS...

Are your Virtual Private Servers managed?

VPS server management is an optional add-on available to our VPS clients, and was previously...

AWStats is missing from my VPS, how can I fix this?

AWStats is not enabled by default on our VPS installations however it is extremely easy for you...

Can I get cPanel with my VPS?

All of our Virtual Private servers come with cPanel by default.