Jump to content

Archived

This topic is now archived and is closed to further replies.

mysty

what does "source" do?

Recommended Posts

I am reading a book to learn PHP and mysql using Dreamweaver.  There is a step in the introduction to databases where you take a database, mydatabase.SQL and then load mysql and then type " source c:/mysql/data/mydatabase.sql".  After it processes several files, there is a mysql database set up in the data directory.  There are several tables etc.  The book does not describe what is happening with the mysql command "source".

Share this post


Link to post
Share on other sites
SOURCE runs a file (rather than typing a whole bunch of stuff).

http://www.developerfusion.co.uk/show/3998/2/

Share this post


Link to post
Share on other sites
Not to mention that source is a linux command executed at a command prompt.

Share this post


Link to post
Share on other sites

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.