Master:
# 1    execute mysql source command from php                  
hans
Online no
State
Grouping Member
Class class4
Score 221
Wealth 155.5
Posts 156
Login 21:17:46
It is not a source command, but the result is the same"
shell_exec('mysql -uuserid -ppassword dbname < srcfile.sql');

This is very useful if i have a large file that contains sql commands, we can ftp to server first, then write a simple php code to execute it.
Hits: 221, Date: 2010-03-19 09:55:20
[Agree] ( 9 ) [Against] ( 10 )

1 - 1 [ 1]

Reply: execute mysql source command from php

*First line:


More content:


Tags:



Hint: You cannot post here before loginLogin | Register

nothing