Friday, 21 August 2009

Setting up BT Business Hub for webserver access

Go to the user interface. go to settings > firewall > pinholes and dmz.

on there step 1 choose the pc you want to port forward. wait for page to refresh

go to step 2 select the webserver save and your done

Retweet this button on every post blogger

Disable Directory Browsing in Apache

Open the config file and change this line:
  • Options Indexes FollowSymLinks
To this:
  • Options FollowSymLinks
Retweet this button on every post blogger

MySql Backups

There appears to be a few different ways to do this. One of the most desirable ways appears to be via MySQL administrator but this appears to be only active for enterprise users.

There a few discussed on both the MySQL site and devshed. The most popular option seems to be to use command line with mysql dump.

I've adapted this shell comand to store a backup copy
"C:\Program Files\MySQL\MySQL Server 7.0\bin\mysqldump" -u root -p sugarcrm_dbo > "C:\Documents and Settings\SOME DIR\mysqlweekly.sql"
and
"C:\Program Files\MySQL\MySQL Server 7.0\bin\mysqldump" -u root -p sugarcrm_dbo > "C:\Documents and Settings\SOME DIR\mysqldaily.sql"

My reasoning for two files is that I think it pheasible that the DB could get corrupted during an update, killing both the DB and the backup.

Problem with doing this is you need to store the password in the bat file to fully automate and that is pretty insecure. Further investigating will need to be done before going ahead in this manor.

I then store these two bat files and then need only use windows scheduled tasks. To open Scheduled Tasks, click Start, click All Programs, point to Accessories, point to System Tools, and then click Scheduled Tasks. Then simply follow the add wizard.

For debug purposes of the bat file use: cmd.exe /k "the .bat file" so that the window stays open, allowing viewing of any errors.

UPDATE: I appear to be wrong, you can update using public MySQL administrator. You simply need to create the project 1st. Note, to run as scheduled tasks it needs to be done via a stored connection within the connections manager. Why this didn't come up in a search on google or be updated on the MySQL site is beyond me. Retweet this button on every post blogger

Thursday, 20 August 2009

Importing data from SQL Server to MySql

You'd think it'd be an easy import from one of the tools right, well it doesn't appear that way... although I may well be wrong.

There were a few different migration tools so I weighed up all the options and just went for the first one in the list MSSQL2MYSQL. Straight away I encountered problems, I tried to run via a VB app (Word can do this supposedly), and I hit a runtime error. A little bit of digging and it becomes appartent this is a classic VB error and the activeX dll needs registering or there is something wrong with my VB runtime. I install the latest copy of VB and do a restart.

I then spot that there is a MySQL migration tool kit that would appear to do all I need. It is a very easy to use GUI editor.... thumbs up to the MySQL team! Retweet this button on every post blogger

Installing MySQL

It's an easy enough install one point to note, don't run the install without adding a root user.

If you do you'll probabley need to un-install and re-install

This blog post maybe of help. Specifically, this command line:

To permanently remove the old mysql service, execute the following command as a user with administrative privileges, on the command-line:

C:\>sc delete mysql
[SC] DeleteService SUCCESS

And this thread may help with adapting root level user if lost or forgotten.

There are couple of additional tools that can be installed, I've opted for Gui-Tools and Workbench Retweet this button on every post blogger

Flex Designs

A new toy has been beta released by Adobe called Flash Catalyst. Being beta software its not got the full feature set but it is free to use. As I'm not a Flex developer, free software for occasional use is ideal.

I'm going to assume that it won't be free for long so I'm going to save the download in my dropbox account.

Supposedly, you simply create your design in photoshop or illustrator, then import it into flash catalyst and then it make it very simple to create your designs layers for your flex app.

Update: Here's a handy post from SitePoint about using Catalyst and Twitter
Update2: Serial codes for the beta
Retweet this button on every post blogger

SugarCRM and SQL Server 2008

There is currently no support for SQL Server 2008 within the sugarCRM. This is quite frustrating as I've spent the best part of a weeks free time getting this going only to see it be v.buggy and unusable.

There was a blog post that it was available for the 5.5 beta version, and even had an update in the user documentation to the affect. However, the blog posts date was after the file update date, and when attempting the instal with this SQL server was not appearing as a database option. I always thought open source, not re-inventing the wheel was supposed to be quicker!

So, my plan is now to instal and run off of MySQL, which will be a new thing for me. Hopefully should work ok otherwise I'm in danger of becoming a right miserable git. Retweet this button on every post blogger
 
Bookmark and Share