Mysql editor v0.2

This cgi scripts in Perl enables you to edit content of Mysql database. This doesn't support editing of the entire database structure.

WHERE TO DOWNLOAD

You can check for newer version at my site http://sorry.vse.cz/~xzemt02/mysql/

HOW TO INSTALL

Just copy all files to some directory where you have rights to run cgi scripts.

CONFIGURATION

Editor uses the file dat.conf for reading the configuration. In the file should be specified :

init = init string for connecting to database in format DBI:mysql:database=name_of database;
login = your_login_name
pass = your_passord
tables = names of tables which can be viewed, updated and inserted separated by comma

In the file can be specified, which columns you can see in view mode for each table like this :

view table_name = names of collumns for seeing separated by comma

If you don't specify column names using view parametr, default mode for viewing will be SQL: select * from table_name and the view page can be very huge.

Sample configuration :

#-------------------- dat.conf ------------------------------------
# database name is chat
init = DBI:mysql:database=chat;

login = root
pass = my_root_password

# tables witch which I can work
tables = users, messages , mails

# which columns for database users and messages I will see in the view mode
view users = id, name, email
view messages = id,id_users , text, date
#--------------------------------------------------------
HOW TO RUN

You can run this editor using the index.html file, or with executing the file view.cgi in you browser

TODO
- more error checking
- do something with blob columns
- enables updating and inserting with using database relations

CONTACT

If you have some guestions, write me an email to xzemt02@sorry.vse.cz