MySQL Server

What is it?

MySQL is an open source relational database, filling the same niche that Oracle or DB2 might for a larger group. We use and generate gigabytes of data in our computational experiments. MySQL stores and collates this data using effecient structures (like BTrees) to allow rapid querying for specific subsets of this data. In general, it's used where people need to share data, use data from several locations, or most importantly where the size of data makes a flat file or RAM storage impracticial. Data is accessed via TCP/IP connections, using the SQL query language. MySQL comes with a command line client, but there are also graphical clients and APIs in many language to manage retrieval. You can google for SQL tutorials, or use my primer here. I also have a partial primer for accessing MySQL from python (link). I highly recommend the free mysqlcc as a free program for administration. The official MySQL manual is useful for both users and administrators of MySQL.

Where does it live?

The server itself resides on the following tree (parts shown): Actual data lives in /net/fugu/usr0/db/mysql_data/.

NOTE: An older version of the database lives on motif. This has occaisionally proved useful, but is not up to date and can prove confusing sometimes, especially with soft links or applications which are configured pointing to the wrong location. Most of this should be long fixed, but be aware.

Standard Operating Procedures

Most of the responses here use tools from mysql's bin directory. Many of these tools require a "-p" modifier to prompt you for a password, depending how you set it up. Add it yourself!



back home
bobsedge@andrew.cmu.edu