- Python 2.7.x (version 3.x will not work!)
- Python SUDS package
- Python MySQLdb package (if you plan on using MySQL)
- a MySQL database
- GUI software for managing the MySQL database
- Install Python
- Download the free version of ActivePython
- Run the Python Package Manager
- In PyPM type "pypm install suds"
- In PyPM type "pypm install mysql-python"
- Install MySQL
- Download XAMPP for Windows. This comes with a MySQL server. Set it up during installation. Note the username and password you choose.
- Connect with MySQL GUI client
- Install MySQL Workbench on your office computer
- Set up a new connection to your MySQL database at "localhost" and connect with the credentials you supplied when you installed MySQL.
- Create a database. Create the following tables (the names are flexible):
- (insert table create statements/scripts)
- Using the Server Administration module, add a new user with SELECT and INSERT privileges on your database that will be used to allow the script to connect.
For Linux, you will have to do some tinkering of your own. Hopefully, if you even care about how to do this on Linux, you have a good amount of experience using it in the first place and probably know better than I do. Here are the main steps I discovered as a Linux n00b. I am running Ubuntu 11.10:
- Install Python
- sudo apt-get install python-dev
- sudo apt-get install python-suds
- sudo apt-get install python-mysqldb
- Install MySQL
- sudo apt-get install mysql
- create a strong password for the root user
- modify my.conf to allow connections from ALL hosts
- create a user with all privileges and a strong password
- Connect with MySQL GUI client
- sudo ufw allow 3306 (3306 is default)
- install MySQL Workbench on your office computer
- set up a new connection to your MySQL database
- create a database with tables as described above
No comments:
Post a Comment