Second whack at this. Suggestions welcome . . .
- Made the id an index
- Removed the NULLs
- Removed the extraneous tables I don’t use
-- MySQL dump 10.9 -- -- Host: localhost Database: apachelogs -- ------------------------------------------------------ -- Server version 4.1.18-log /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; /*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */; /*!40101 SET NAMES utf8 */; /*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */; /*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */; /*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */; /*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */; -- -- Table structure for table `access_log` -- DROP TABLE IF EXISTS `access_log`; CREATE TABLE `access_log` ( `id` mediumint NOT NULL AUTOINCREMENT, `agent` varchar(255) default NOT NULL, `bytes_sent` int(10) unsigned default NOT NULL, `child_pid` smallint(5) unsigned default NOT NULL, `cookie` varchar(255) default NOT NULL, `machine_id` varchar(25) default NOT NULL, `request_file` varchar(255) default NOT NULL, `referer` varchar(255) default NOT NULL, `remote_host` varchar(50) default NOT NULL, `remote_logname` varchar(50) default NOT NULL, `remote_user` varchar(50) default NOT NULL, `request_duration` smallint(5) unsigned default NOT NULL, `request_line` varchar(255) default NOT NULL, `request_method` varchar(10) default NOT NULL, `request_protocol` varchar(10) default NOT NULL, `request_time` varchar(28) default NOT NULL, `request_uri` varchar(255) default NOT NULL, `request_args` varchar(255) default NOT NULL, `server_port` smallint(5) unsigned default NOT NULL, `ssl_cipher` varchar(25) default NOT NULL, `ssl_keysize` smallint(5) unsigned default NOT NULL, `ssl_maxkeysize` smallint(5) unsigned default NOT NULL, `status` smallint(5) unsigned default NOT NULL, `time_stamp` int(10) unsigned default NOT NULL, `virtual_host` varchar(255) default NOT NULL, FULLTEXT KEY `request_uri` (`request_uri`) ) ENGINE=MyISAM DEFAULT CHARSET=latin1;