GOAL:
To enable the use of MySQL through the PERL DBI in cgi form, via my Apache Web Server, whilst allowing administration of ALL the databases through cgi, UNIX command line.
ITEMS USED:
It is recommended that you download and use the latest stable versions of all of the above. I took a chance with the beta version of MySQL and it worked.
HERE WE GO:
Please install in the following order:-
MySQL:-
Summary:- We have ended up with a mysql user called wizdom, that can access any table in the database wizdom, from the local host (jilldando, the Linux box) and from the win98 box. I do not fully understand what went on, it just worked, in that it allowed me to achieve the above goal.
|
I made the decision to run MySQL as root since it would not root as user mysql (even though this user exists). There is no security issue for me, since the databases will only be accessible via my home network. Do the ldconfig stuff. My Linux box is known as jilldando. Create
a new user. Now the grant the priveledges for user wizdom from 2 hosts. You might want to put the mysqld line in a startup file.
|
PERL:-
|
|
PERL modules:-
|
I only installed MySQL (Option 1) and I gave it the user name wizdom and the password when asked what user to use. |
The only difference between my ISP wizdom database and my Linux box wizdom database, is that I have to access all wizdom database tables using jilldando in the connect dialogue in perl (I should really have my scripts check what host they are running on and adjust themselves):- #!/usr/bin/perl -w |
You may have realised by now, that my ISP only allows access to my tables from localhost, i.e. the script has to be run on the actual MySQL server machine.