Mike wrote:

> In working with some non profit groups I need to be able to send a complete
> program that is installed and ran fairly easy.
> To me MySQL is easy in most cases but to someone not familiar with it it can
> be a daughtening task. Is there a way to send a setup program using MySQL?
> Most of the time it's just a few tables so if there was an alternative way
> to make the tables and  use them in a program that would be great.

In UN*X land, you could send a shell script, e.g.:

#!/bin/sh
#

echo "Setting up the test_table..."

mysql db -u user -ppassword <<'EOF'
DROP TABLE IF EXISTS test_table;
CREATE TABLE test_table ( a char, b char );
EOF


echo "Done."

Not really portable, 'thogh.

--Bill


---------------------------------------------------------------------
Before posting, please check:
   http://www.mysql.com/manual.php   (the manual)
   http://lists.mysql.com/           (the list archive)

To request this thread, e-mail <[EMAIL PROTECTED]>
To unsubscribe, e-mail <[EMAIL PROTECTED]>
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php

Reply via email to