1) Create the database with the first SQL statement.
2) Issue the next two follow SQL statements below to the MySQL daemon to create the tables.  
3) Issue the last SQL statement to give proper permissions to the tables to your web server,
   Changing the 1.2.3.4 to the IP address that the web server will be accessing MySQL from.

CREATE DATABASE webcounter;

CREATE TABLE webcounter (
  cntCount int(11),
  cntID int(11) NOT NULL auto_increment,
  cntName varchar(25),
  PRIMARY KEY (cntID)
);

CREATE TABLE counterlog (
  logID int(11) NOT NULL auto_increment,
  logCntID int(11),
  logHost varchar(50),
  logRefer varchar(250),
  logBrowser varchar(50),
  logOS varchar(30),
  logOSVersion varchar(10),
  logTimeStamp timestamp(14),
  logBrowserVersion float,
  PRIMARY KEY (logID)
); 

GRANT SELECT, INSERT, UPDATE, DELETE ON webcounter.* TO counter@'1.2.3.4' IDENTIFIED BY 'count123';
