Document Actions
How to change Koha default user name and password?
Up to Table of ContentsThis FAQ applies to: 3.0, 3.1
Is your operating system Windows?
- Open a command prompt and type: cd \mysql\bin
- Type: mysqladmin -u koha -p password YourNewPasswordHere
- You will be prompted for the current password which is "koha"
The above action will reset the mysql password.
Open the C:\etc\koha.conf and set the new password in the pass=koha line.
Restart apache to implement the change


Updated conf
<database>koha_db</database>
<user>whoever</user>
<pass>foobar</pass>
This specifies what the application will use to try to access mysql. So if that doesn't work for you on the command line, like:
mysql -uwhoever -pfoobar koha_db
Then it won't work for Koha either.
Note that if you attempt to change the username, you will have to repeat the GRANT permissions steps from the INSTALL instructions, because the new user will not have been granted permissions. You should also remove the permissions granted to the old username, for security. More likely, you just shouldn't change the username.