Register a SA Forums Account here!
JOINING THE SA FORUMS WILL REMOVE THIS BIG AD, THE ANNOYING UNDERLINED ADS, AND STUPID INTERSTITIAL ADS!!!

You can: log in, read the tech support FAQ, or request your lost password. This dumb message (and those ads) will appear on every screen until you register! Get rid of this crap by registering your own SA Forums Account and joining roughly 150,000 Goons, for the one-time price of $9.95! We charge money because it costs us money per month for bills, and since we don't believe in showing ads to our users, we try to make the money back through forum registrations.
 
  • Post
  • Reply
Twlight
Feb 18, 2005

I brag about getting free drinks from my boss to make myself feel superior
Fun Shoe
Hi everyone,

I have a database is dumped every day and sent via ftp to another server. Sometimes I would like to open this sqldump and make a few queries on, but I don't want it to overwrite the current database. I saw that you can dump the sqldump back into the same database but I was unsure because I didn't want to overwrite the data. Is there a way I can open an sqldump file and perform some basic queries on it without it overwriting the main db?

Adbot
ADBOT LOVES YOU

Twlight
Feb 18, 2005

I brag about getting free drinks from my boss to make myself feel superior
Fun Shoe
Hello Everyone,

I'm creating an IT inventory application for our company, and i've decided to use mysql for the database side of it. I've created two tables, one for infrastructure with the primary key of asset tag, and Location, also asset tag as the PK. I wrote some table creation statment, and just wanted to see what everyone else thought of these:
code:

* Powered by General SQL Parser ([url]www.sqlparser.com[/url]) */

CREATE TABLE INFRASTRUCTURE (
  ASSET_TAG        INT   NOT NULL   AUTO_INCREMENT,
  DEVICE_TYPE      TEXT   NOT NULL,
  MANUFACTURER     TEXT   NOT NULL,
  NETWORK_NAME     TEXT,
  IP_ADDR          VARCHAR(15),
  SUB_MASK         VARCHAR(15),
  CPU              TEXT,
  MEMORY           VARCHAR(5),
  OPERATING_SYSTEM TEXT,
  PURPOSE          TEXT   NOT NULL,
    PRIMARY KEY ( ASSET_TAG ));



CREATE TABLE LOCATION (
  ASSET_TAG INT   NOT NULL,
  LOCATION  TEXT   NOT NULL,
  BUILDING  TEXT   NOT NULL,
    PRIMARY KEY ( ASSET_TAG ));

I just wanted to know if I'm going in the right direction. I'll be using PHP to build the web front end for this.

Twlight
Feb 18, 2005

I brag about getting free drinks from my boss to make myself feel superior
Fun Shoe
Found it out

Twlight fucked around with this message at 22:52 on Jul 1, 2008

  • 1
  • 2
  • 3
  • 4
  • 5
  • Post
  • Reply