Thread: MySql
View Single Post
Old Feb 8th, 2007, 7:08 PM   #5
Arevos
Programming Guru
 
Arevos's Avatar
 
Join Date: Aug 2005
Location: England
Posts: 1,499
Rep Power: 5 Arevos is on a distinguished road
You can create tables and records in MySQL via SQL commands. For example:
sql Syntax (Toggle Plain Text)
  1. CREATE TABLE pets (
  2. id int,
  3. species varchar(100),
  4. name varchar(100)
  5. );
  6.  
  7. INSERT INTO pets (species, name) VALUES ('dog', 'rover')
  8. INSERT INTO pets (species, name) VALUES ('cat', 'fluffy')
In MySQL and most other databases, a set of commands like this can be generated from an existing table that will recreate it exactly. This set of commands can be saved in a file, and imported into a remote database. This is what DaWei means by describing the database with files.
Arevos is offline   Reply With Quote