some like mysql_query("SOURCE='/file.sql'",$link);

Questions about the MySQL, PostgreSQL, and most other databases, as well as using it with PHP can be asked here.

Moderator: General Moderators

Post Reply
User avatar
visonardo
Forum Contributor
Posts: 136
Joined: Mon Oct 02, 2006 7:49 pm
Location: Argentina, South America´s Sun.

some like mysql_query("SOURCE='/file.sql'",$link);

Post by visonardo »

hi, i uploaded my sql file in my server for example in /
then i want do the db with something thus

mysql_query("SOURCE='/file.sql'",$link);

and read all content and do all instructions, how can i do that?
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

I don't recall that being allowed.

Search raghavan20's posts in regex for some examples.
User avatar
visonardo
Forum Contributor
Posts: 136
Joined: Mon Oct 02, 2006 7:49 pm
Location: Argentina, South America´s Sun.

Post by visonardo »

feyd says about this topic but i wanna know if there is some instruccion in mysql that allow read directly an sql file with a single line like title of this topic. Isnt? i will check it in the files of phpmyadmin too.

Thank you feyd, i left this link here because can be useful to others.
Post Reply