I'm a beginner with PHP, so I apologize if I'm asking something that's a common knowledge.
I know how to execute a single MySQL command and process its output. But what I'd like to do is to pass a sequence of commands to MySQL and let it execute the entire script and only pass back any potential output of the script.
Kind of, like what this line does from shell:
I'm using a version of MySQL that doesn't support stored procedures, so I'm looking for ways to get around this problem.
I know how to execute a single MySQL command and process its output. But what I'd like to do is to pass a sequence of commands to MySQL and let it execute the entire script and only pass back any potential output of the script.
Kind of, like what this line does from shell:
Code:
mysql -u userName -p < /path/to/file.sql
Comment