Insiteweb Support

[ Insiteweb Home Page | Contact Support | Support Home Page]

Unix Databases

The main databases available on our system are mSQL and mySQL . They can be accessed via PHP (probably the most widely used method) or via the mSQL prompt via telnet (If you want to try this, get the mSQL docs first!).

Note: We offer mSQLand mySQL databases as a free service to our premium customers. We do not provide tech support for databases.

"mSQL is a lightweight database engine designed to provide fast access to stored data with
low memory requirements." - mSQL Manual

Note: The only types of database that we permit on our system are mSQL and mySQL; other database types make heavy use of system resources. Allowing them would negatively impact the performance of other clients' websites.

First, some basics:

For example, if your domain name is xyz.com, the name of your database will be:

xyz

Want to do a quick and easy backup of your database? Use msqldump! Just follow these steps:

  1. Run the command msqldump databasename > filename.dump. This creates a flat ascii file with all of the commands necessary to totally recreate your mSQL database. (If you just run msqldump databasename without directing it to a file, then it echoes to the screen! Yuck, yuck, phooey, phooey!)

  2. You can use this for a daily backup, delete or manipulate your tables, whatever. As long as you have this ascii file, you're OK.

  3. If you are experiencing problems with a table (key fields not working properly, spaces inserted into integers, etc.), then you can run an msqldump, delete the current structure, and feed the data back in with the command
    msql databasename < filename.dump. All better now!

Sample Msqldump for Database TEST

#
# mSQL Dump (requires mSQL-1.0.6 or better)
#
# Host: localhost Database: test
#--------------------------------------------------------


#
# Table structure for table 'TABLE01'
#
CREATE TABLE TABLE01 (
she CHAR(32),
him CHAR(32),
three CHAR(32)
) \g


#
# Dumping data for table 'TABLE01'
#

INSERT INTO TABLE01 VALUES ('Anna','Franz','Otto')\g
INSERT INTO TABLE01 VALUES ('Sabine','Thomas','Pauline')\g
INSERT INTO TABLE01 VALUES ('Jane','Paul','Jah')\g

#
# Table structure for table 'TABLE02'
#
CREATE TABLE TABLE02 (
she CHAR(32),
him CHAR(32),
three CHAR(32)
) \g


#
# Dumping data for table 'TABLE02'
#

INSERT INTO TABLE02 VALUES ('Anna','Franz','Otto')\g
INSERT INTO TABLE02 VALUES ('Sabine','Thomas','Pauline')\g
INSERT INTO TABLE02 VALUES ('Jane','Paul','Jah')\g

#
# Table structure for table 'TABLE03'
#
CREATE TABLE TABLE03 (
she CHAR(32),
him CHAR(32),
three CHAR(32)
) \g


#
# Dumping data for table 'TABLE03'
#

INSERT INTO TABLE03 VALUES ('Anna','Franz','Otto')\g
INSERT INTO TABLE03 VALUES ('Sabine','Thomas','Pauline')\g
INSERT INTO TABLE03 VALUES ('Jane','Paul','Jah')\g

#
# Table structure for table 'TABLE04'
#
CREATE TABLE TABLE04 (
she CHAR(32),
him CHAR(32),
three CHAR(32)
) \g


#
# Dumping data for table 'TABLE04'
#

INSERT INTO TABLE04 VALUES ('Anna','Franz','Otto')\g
INSERT INTO TABLE04 VALUES ('Sabine','Thomas','Pauline')\g
INSERT INTO TABLE04 VALUES ('Jane','Paul','Jah')\g

#
# Table structure for table 'TABLE05'
#
CREATE TABLE TABLE05 (
she CHAR(32),
him CHAR(32),
three CHAR(32)
) \g


#
# Dumping data for table 'TABLE05'
#

INSERT INTO TABLE05 VALUES ('Anna','Franz','Otto')\g
INSERT INTO TABLE05 VALUES ('Sabine','Thomas','Pauline')\g
INSERT INTO TABLE05 VALUES ('Jane','Paul','Jah')\g


Back to Support Home Page

These pages are for Insiteweb customer support only.  While every effort is made to keep these pages current Insiteweb cannot be held responsible for loss or damage to files or equipment due to procedures stated on this website. You must agree to the insitewebdesigncom terms of service prior to using this information.