How to use an SQL Scrip???

Re: How to use an SQL Scrip???

by Tim Hunt -
Number of replies: 0
Picture of Core developers Picture of Documentation writers Picture of Particularly helpful Moodlers Picture of Peer reviewers Picture of Plugin developers
I think you would just need to put the assign_parent.php script in the top level folder of you moodle install, then visit the URL http://example.com/moodle/assign_parent.php to run it.

However, be absolutely sure you trust the script before you run it. A script run like this can do almost anything it likes to your server's hard disc and or database contents, so a malicious, or simply buggy, script could do untold damage.