A 1307 error occurred while creating the mysql storage process.

Source: Internet
Author: User

The create procedure proc1 (OUT s int) process in mysql is simple, but the 1307 error occurs during the import process, let's take a look at the solution to this problem.

Test

The Code is as follows: Copy code

Create procedure test1 (in a int) // create; procedure stored procedure ()
Begin // start
Select * from test where id = a; // here is the statement of the stored procedure
End; // end
// Note: Delimiter must be changed //

If the database is successfully created, it indicates that there is no problem with the database and the stored procedure can be created normally, but a problem occurs during the import.

A 1307 error occurred during creation and the cause of the problem was not found. After searching on the internet, I found that there is a simple method to solve this problem by recreating the proc table.


Specifically, you can use phpmyadmin to delete the proc table, execute the SQL statement to recreate the table, and then restart mysql to take effect.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.