Skip to main content

Posts

HOW TO MANAGING DATABASES

Database Properties The heart of any database is the tables, because the tables contain the data that is used to provide information  to the end users. Tables are contained in databases, and in MySQL each database has an associated "data  directory" to store all the physical components of the database, to include tables. This physical  representation on disk of the tables is dependent on the type of storage engine that the table is utilizing;  however, every table, no matter of the type of storage engine that is being used, contains a format file  (table_name.frm) which describes the table definition and structure.  In addition to the physical representation of the table, there is also the better known logical aspect of the  table. This logical aspect is represented in rows and columns. Rows within a table, consist of a collection of  values that describe an entity (ex. an employee). Columns within a table, consist of a collection of similar  data among rows (ex. employe

Storage Engine Breakdown

The following diagram represents a simplified view of the MySQL server and its interaction with the  storage engines. The following properties are storage engine dependant: • Storage Medium – Each table uses its own method of storing the data it contains. • Transactional Capabilities – Certain storage engines handle transactional processing which ensures that integrity of a database is maintained during the processing of multiple SQL statements.

MySQL Query Browser

     MySQL Query Browser is a cross-platform GUI client program that's intuitive and easy to use. It provides a graphical interface to the MySQL server for querying and analyzing data. The MySQL Query Browser provides a Connection dialog that enables a connection to a MySQL server. This section describes how to use the Connection dialog and the Main Query Browser GUI. Using the Connection Dialog MySQL Query Browser presents a Connection dialog when it starts or when the New Instance Connection … is selected from the File menu. Connecting to a MySQL server can be accomplished either by filling in the connection dialog box fields with the parameters required to connect to a server or selecting from among any predefined connection profiles. Connection Dialog Window:                To connect to a MySQL server by specifying connection parameters directly, fill in the  appropriate fields beginning with the Username field and click the OK button. To connect using the

The mysql Client

The mysql Client           This section discusses mysql, a general-purpose client program for issuing queries and retrieving their results. It can be used interactively or in batch mode to read queries from a file. Using mysql Interactively      The mysql client program enables the sending of queries to the MySQL server with any results being displayed in the same interface. It can be used interactively or it can read query input from a file in batch mode: • Interactive mode is useful for day-to-day usage, for quick one-time queries, and for testing how queries work. • Batch mode is useful for running queries that have been prewritten and stored in a file. It's especially valuable for issuing a complex series of queries that's difficult to enter manually, or queries that need to be run automatically by a job scheduler without user intervention. MySQL statements such as the version query, shown below as executed within the mysql client, can also be run from the s

SQL Parser and Storage Engine Tier

             A client retrieves data from tables or changes data in tables by sending requests to the server in the form of SQL statements. The server executes each statement using a two-tier processing model: • The upper tier includes the SQL parser and optimizer. • The lower tier comprises a set of storage engines.            For the most part, the SQL tier is free of dependencies on which the storage engine manages any given table. This means that clients normally need not be concerned about which engines are involved in processing SQL statements, and can access and manipulate tables using statements that are the same no matter which engine manages them. Exceptions to this engine-independence of SQL statements include the following: • CREATE TABLE has an ENGINE option that enables you to specify which storage engine to use on a per-table basis. ALTER TABLE has an ENGINE option that enables you to convert a table to use a different storage engine. • Some index types ar

MySQL General Architecture

        MySQL operates in a networked environment using a client/server architecture. In other words, a central  program acts as a server, and various client programs connect to the server to make requests. A MySQL  installation has the following major components: MySQL Server, Client programs and MySQL non client  utilities.  MySQL Server MySQL Server, or mysqld, is the database server program. The server manages access to the actual  database (schema) on disk and in memory. MySQL Server is multi-threaded and supports many  simultaneous client connections. Clients can connect via several connection protocols. For managing  database contents, the MySQL server features a modular architecture that supports multiple storage engines  that handle different types of tables (for example, it supports both transactional and non-transactional  tables). Keep in mind the difference between a server and a host. The server is software (the MySQL server  program mysqld). Server characteristi

MYSQL FOUNDATIONS

MySQL server   What is the MySQL Server? MySQL is a relational database that can be used to store dynamic Web page data for services such as online catalogs and stores, create accounting databases, and create address books. MySQL is an advanced feature for users that are familiar with databases and SQL (structured query language). For more information, go to  http://www.mysql.com . If the MySQL server is enabled, users on the internal network can access personal databases and the databases of any teams to which they belong. User and team databases are automatically created when user and team accounts are set up. Setting up Windows for MySQL Access You can use Microsoft (R)  Access to access and manage database tables. 1.        You first have to download the MySQL ODBC (Open Database Connectivity) connector. You can download this at  http://dev.mysql.com/downloads/connector/ .  2.        On the page that is displayed, click the link for the  Connector/ODBC . Ensure y