MDrivenServer, Lost password or locked out
No edit summary
(Automatically adding template at the end of the page.)
 
(6 intermediate revisions by 3 users not shown)
Line 1: Line 1:
If you have been locked out or forgotten the password to your MDrivenServer, you can stop the web server and copy the database file and edit it.
If you have been locked out or forgot the password to your MDrivenServer, you can stop the web server and copy the database file and edit it.
* On a Windows installation, stop the web server using IIS Manager.
* On a Windows installation, stop the web server using IIS Manager.
* On Azure, stop your site and then use the Advanced Tools to download the database file
* On Azure, stop your site and then use the Advanced Tools to download the database file
The database file is located in __MDrivenServer/App_data/DatabaseCompact.sdf
The database file is located in __MDrivenServer/App_data/DatabaseCompact.sdf


Once download use the procedure [[MDrivenServer, opening the build-in database]], to open the database.
Once downloaded, use the procedure [[MDrivenServer,_opening_the_built-in_database]] to open the database.


In the table Admin_ASP_Users, you can set IsLockedOut to 0 (false) if you have been locked out.
In the table Admin_ASP_Users, set IsLockedOut to 0 (false) if you have been locked out.


To reset the password, copy the Password field fron another installation that you know the password for, an you will have set it.
To reset the password, copy the Password field from another installation that you know the password for, and you will have set it.


Once done, upload the database file again and restart the web site or IIS.
Once done, upload the database file again and restart the website or IIS.


You can also reset pwd with a ResetPWD.txt file on the server: [[MDrivenServer,_opening_the_built-in_database]]
Also, reset pwd with a PwdReset.txt file on the server: [[MDrivenServer,_opening_the_built-in_database]]


==== Init logic - MDrivenServer ====
==== Init logic - MDrivenServer ====
When the MDrivenServer is started it looks for a App_Data/DatabaseCompact.sdf - if none is found it copies App_Data/DatabaseCompact_TkStartDb.sdf to App_Data/DatabaseCompact.sdf and tries again.
When the MDrivenServer starts, it looks for an App_Data/DatabaseCompact.sdf. If none is found, it copies App_Data/DatabaseCompact_TkStartDb.sdf to App_Data/DatabaseCompact.sdf and tries again.


The App_Data/DatabaseCompact_TkStartDb.sdf is the template db used for new installations.
The App_Data/DatabaseCompact_TkStartDb.sdf is the template DB used for new installations.


It has a user named "a" with pwd=123456. The PWD is replaced by portal in cloud scenarios.
It has a user named "a" with pwd=123456. The pwd is replaced by the Portal in cloud scenarios.


See also [[MDrivenServer,_opening_the_built-in_database]]
See also: [[MDrivenServer,_opening_the_built-in_database]]
[[Category:MDriven Server]]
{{Edited|July|12|2024}}

Latest revision as of 15:36, 10 February 2024

If you have been locked out or forgot the password to your MDrivenServer, you can stop the web server and copy the database file and edit it.

  • On a Windows installation, stop the web server using IIS Manager.
  • On Azure, stop your site and then use the Advanced Tools to download the database file

The database file is located in __MDrivenServer/App_data/DatabaseCompact.sdf

Once downloaded, use the procedure MDrivenServer,_opening_the_built-in_database to open the database.

In the table Admin_ASP_Users, set IsLockedOut to 0 (false) if you have been locked out.

To reset the password, copy the Password field from another installation that you know the password for, and you will have set it.

Once done, upload the database file again and restart the website or IIS.

Also, reset pwd with a PwdReset.txt file on the server: MDrivenServer,_opening_the_built-in_database

Init logic - MDrivenServer

When the MDrivenServer starts, it looks for an App_Data/DatabaseCompact.sdf. If none is found, it copies App_Data/DatabaseCompact_TkStartDb.sdf to App_Data/DatabaseCompact.sdf and tries again.

The App_Data/DatabaseCompact_TkStartDb.sdf is the template DB used for new installations.

It has a user named "a" with pwd=123456. The pwd is replaced by the Portal in cloud scenarios.

See also: MDrivenServer,_opening_the_built-in_database

This page was edited 89 days ago on 02/10/2024. What links here