См. также: by virtue of law, by special resolution, by its own efforts, by instalments
In conversation, you usually say that something is done by mistake. I opened the door into the library by mistake. (Collins COBUILD English Usage)