===================================================================

 MicroSQL (MySQL 4.1.9) READ ME

 http://microapache.amadis.sytes.net

===================================================================

 M Shaw - March 2006 - Released under the GPL Licence

===================================================================

Disclaimer
==========
First of all, I'm *NOT* an SQL expert!.  This is my first attempt at 
creating a micro-sql distribution. There may well be issues or 
problems with the distro. It is intended to be used with MicroApache 
on a USB hard drive of at least 50mb capacity. Please don't whinge 
or "slag me off" because this distro doesn't work the way you want 
it to. If you encounter problems then please HELP by fixing them then 
send me the updates to include. 

If has been released in the hope that it may be of benefit to 
intelligent Apache users out there in Cyberspace!.

Support and Problems
====================
If there are any problems please let me know but bear in mind
that I don't get paid to do this and may be busy doing other
things. You are expected to be able to help yourself and
to know a little about configuring MySQL. First point of call
should always be the official MySQL documentation at

http://www.mysql.com/

Do *NOT* approach MySQL AB for support with MicroSQL.
MicroSQL and other modified distros are NOT the responsibility
of MySQL AB.

Copyright
=========
This software is supplied free of charge under the terms of
the original GPL licence. If you didn't recieve a copy of the
licence and terms  in LICENCE.TXT then please download it from 
the MySQL website at http://www.mysql.com/

Installation
============
The distro requires NO setup. The instance is pre-configured
If you wish to re-configure the instance then you will need
to add a copy of the MySQL Instance configuration program
called MySQLInstanceConfig.exe to the \bin directory and run it. 
Then copy the resulting file to the root directory as MY.INI

The distro may be configured to be installed in either of the 
following locations (please check which and adjust as required)

c:\mysql  or  b:\mysql

You will need to edit the my.ini file if this
is supplied with hard-coded drive letters.

The file SQLADMIN.BAT cannot be launched from
Windows explorer as it requires a parameter
e.g. SQLADMIN status

Only the standard EXE has been included (MYSQLD-NT.EXE)

Apache Installation
===================
This distro DOES NOT include the required files for Apache
since these will vary depending on which version of Apache
you are using. (1.3.x, 2.0.x or 2.2.x). You will need to 
obtain the SO (DLL) modules for Apache separately. MicroSQL
will work with the standard object modules.

Running Disk Footprint
========================
The distro is just under 8Mb. Once run for the first time 
control files will be created which take the footprint up
to 38Mb.

Language
========
Space has been reduced by removing all language error message 
config files other than ENGLISH. You can easily add/restore other 
languages to the \share subdirectory. (e.g. \share\czech\)

Data Space
==========
On first running MySQL will populate the \data subdirectory with
3 x 10mb files as well as a PID file. You should allow space for
this and any other data tables you create.  There is no data in 
the supplied TEST database and the root directory of \data should
have been cleared of all datafiles.

Default Users
=============
Two default users are included:

username   Password
--------   --------
Root       password
Local      password

Starting MicroSQL
================
Click the sqlstart.bat file to start

If the console does not close then either retry or press CTRL+C
in the MySQL console window.  You should see...

-------------------------------------------------------------------
060309 19:03:11  InnoDB: Started; log sequence number 0 43634
bin\mysqld-nt.exe: ready for connections.
Version: '4.1.9-nt'  socket: ''  port: 3307  Source distribution
-------------------------------------------------------------------

You can install MicroSQL as a service if you wish but it has
been configured to be run as a second copy of MySQL in a
testing environment. Hence the port in use is not 3307 but
3307. If you wish to use MicroSQL on a standard port please
edit MY.INI and change the two port values. Then change
any batch files which have been supplied.

Stopping MicroSQL
=================
Click the sqlstop.bat file to stop then enter the root password
and press RETURN. If the MySQL console window does not close
itself down, press CTRL+C in the window then exit it.

Testing MicroSQL
================
Run MicroSQL
Run SQLCONNECT.BAT
at the "mysql>" prompt enter...

SHoW DATABASES;  (and press RETURN)

mysql> show databases;
+----------+
| Database |
+----------+
| mysql    |
| test     |
+----------+
2 rows in set (0.00 sec)

now enter

select database() 'test';  (and press RETURN)

mysql> select database() 'test';
+------+
| test |
+------+
| NULL |
+------+
1 row in set (0.00 sec)


Security
========
WARMING: DO NOT INSTALL ON A LIVE SERVER WITHOUT CHANGING THE 
ROOT AND LOCAL USER PASSWORDS!!

===================================================================

Enjoy! - MS - 2006

===================================================================

Frequently Asked Questions (FAQ)
================================

Q) Are the MicroSQL binaries changed in any way?
A) No. Other than being UPX compressed and some non-essential ones
deleted from the distro.

Q) Does MySQL Administrator work with Micro-SQL
A) Yes. Connect on whatever port was configured (3307)

Q) I need feature "x" - (eg. MySQLInstanceConfig.exe) - Can I simply 
copy the required EXE from  a standard install of MySQL?
A) Yes, if it is from the same MySQL version

Q) I have found a problem what should I do?
A) Tell me and I will see what I can do to fix it

Q) I don't want console logging. I want proper loging
A) Edit the sqlstart.bat file and note the instructions

===================================================================

