I am doing an mysql php application and I need to create a procedure to make my foreign keys work fine and also to create a calendar for report purposes. However, I have been trying to create the procedures and it does not works in putty.exe which is the only software available to do my application. I researched and I did not find anything related to this. Can anyone advise if I will need extra files for putty or the way to do it?

有帮助吗?

解决方案

You need to use the mysql client to run commands against mysql. In the putty command line just run:

mysql

You will most likely need to add parameters to the command, like the user and the password needed to connect. Check the MySQL manual for details.

To run the script file that contains your procedure, first you have to upload the file to the server and then run it with

mysql < script.sql

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top