Question

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?

Was it helpful?

Solution

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

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top