Free Web Hosting Forum
Go Back   Free Web Hosting Forum > Website Building > Web Programming
Reload this Page Can't create stored procedure in phpmyadmin
Reply
 
Thread Tools Display Modes
(#1 (permalink))
Old
Junior Member
damiancipolat is on a distinguished road
 
Posts: 3
Join Date: Sep 2011
Default Can't create stored procedure in phpmyadmin - 09-08-2011, 02:03 PM

Help!!
i can't create a stored procedure in phpmyadmin in 000webhost.

i'm using a free count.

someone could create a sp?

example:
delimiter //
create procedure hi()
begin
select 'hola';

end

error msg:
#1547 - Column count of mysql.proc is wrong. Expected 20, found 16. The table is probably corrupted

Reply With Quote
Sponsored Links
(#2 (permalink))
Old
Leder678's Avatar
Senior Member
Leder678 is on a distinguished road
 
Posts: 1,430
Join Date: Jan 2009
Location: Norway
Send a message via MSN to Leder678
Default 09-09-2011, 09:59 AM

could you show us the exact code, from line 1500-1600 ?


Follow me on twitter @Mortenrb

W3Fools - Read and learn

Please AT LEAST read the 10 bolded lines of the TOS at:
http://www.000webhost.com/includes/tos.php
Reply With Quote
(#3 (permalink))
Old
Junior Member
damiancipolat is on a distinguished road
 
Posts: 3
Join Date: Sep 2011
Default 09-09-2011, 01:05 PM

All the code is it:

delimiter //
CREATE PROCEDURE hi( )
BEGIN
SELECT 'hola';
END

(and in phpmyadmin delimiter field //)


MySQL said:

#1547 - Column count of mysql.proc is wrong. Expected 20, found 16. The table is probably corrupted


I think in a problem with the mysql of the database in 000webhost..this code function very well in other mysql from other web.

About the bug:
http://bugs.mysql.com/bug.php?id=56242
Reply With Quote
(#4 (permalink))
Old
Senior Member
grace1004 is on a distinguished road
 
Posts: 544
Join Date: Dec 2010
Default 09-09-2011, 01:24 PM

It looks like phpmyadmin in 000webhost.com does not support a stored procedure.

After testing at the phpmyadmin installed in my PC, I found that creating a stored
procedure(SP) is possible, but calling SP with a select query was not working.
SP with an insert query worked. That is, my phpmyadmin also does not fully support
the stored procedure. When I tested the same SP's at MySQL console screen, it worked
fine.

If you still want to use SP, just save frequently used queries in text file, copy
and paste it on query box whenever needed.
Reply With Quote
(#5 (permalink))
Old
Junior Member
damiancipolat is on a distinguished road
 
Posts: 3
Join Date: Sep 2011
Default 09-09-2011, 03:09 PM

yes don't function in 000webhost.!,there use a phpmyadmin oldversion,the newest version is great! http://demo.phpmyadmin.net/master-config/ the sp function ok! and have a cool User interface!

thank's for reply.
grettings
Reply With Quote
(#6 (permalink))
Old
Junior Member
Ural is on a distinguished road
 
Posts: 4
Join Date: Mar 2012
Default 03-06-2012, 09:29 AM

Hi there,
so the solution is that stored procedures cannot be used on 000webhost and that's it?

Is there another way to create a stored procedure (maybe a different SQL editor than phpMyAdmin) or something else?

What if we need stored procs in our database?

How did you fix the problem?

Thanks a million,
Gianluca
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off

Forum Jump



Powered by vBulletin® Version 3.8.2
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.5.2
vBulletin Skin developed by: vBStyles.com