I don't know if it will work, but give it a shot on yer own risk!):
- Shut down the mysql service
- copy the tikiwiki database files (don't know where to find them, good luck...) and any other database you need
- remove and reinstall mysql, creating a new root user
- copy back the tikiwiki database files
- see if you can set up permissions now...