I've discovered that my problem was to do with usernames. Either in the database or in MiniLoginAccounts.ini. I had the server running sweet, but then I decided to play around a bit and try and work out what exactly I had wrong. unfortunatly I stuffed it up..... :(
O,well I'll try again
This is a really usefull page for the 1017 error...
http://forums.eqemu.net/viewtopic.php?p=35144#35144