added port to mysql connect
added root_path for open files purpose
hz