Filed under:

How do I use a Microsoft Access database on Windows Plesk Hosting.




Uploading your database

  1. Login to your the Plesk Control Panel and open the File Manager.
  2. Open the private folder and select Add New Folder.
  3. Click the Browse button and location the database file (*.mdb) file from your local computer.
  4. Press the OK button to upload it.

Setting up a database connection

  1. Click on Home to return to the Home page and select ODBC Settings under Services.
  2. Click on the "Add new ODBC DSN" button
  3. Enter the name of the new connection for the database uploaded in the previous steps (You must only use letters and numbers - no spaces). You can also add an optional description.
  4. From the drop down, select "Microsoft Access Driver (*.mdb)" and click OK.
  5. Enter the Database File Path, this will be in a format similar to: E:\inetpub\vhosts\<example.com*gt;\private\<uploaded_database.mdb> (See the section Finding the Database Path below) where example.com is your domain name and uploaded_database.mdb is the name of the database uploaded to the site. Normally the domain name will not include the www part.
  6. The rest of the fields are optional and are normally not needed.
  7. Click on the "Test" button and if the connection has been created correctly you will be shown the message "Connection Successful".
  8. If you do not see "Connection Successful" please check you have specifed the correct path (without the www). If you need to enter a password to open the database enter the appropriate username and password details.

Finding the Database Path

  1. Save the attachment shown below "showpath.asp" and upload this to the 'httpdocs' folder for your website.
  2. Browse to this page in your web browser http://www.example.com/showpath.asp (replacing www.example.com)
  3. This should show you a path similar to C:\inetpub\vhosts\<example.com*gt;\httpdocs\showpath.asp
  4. To create the path to your database remove the portion "httpdocs\showpath.asp" from the end and add "private\<uploaded_database.mdb>.
  5. Once this is working, please remove the file showpath.asp from your website as it is no longer needed


Was this answer helpful?

Add to Favourites Add to Favourites    Print this Article Print this Article

Also Read

Language: