Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 570353
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T13:23:32+00:00 2026-05-13T13:23:32+00:00

My remote database is Mysql database and i want to retreive some records and

  • 0

My remote database is Mysql database and i want to retreive some records and put into the
Microsoft Access database which is a localhost database

and i want to also create DSN for remote database

please help me

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-13T13:23:32+00:00Added an answer on May 13, 2026 at 1:23 pm

    I’ve just got a similar set up working in MATLAB which uses java to connect to MySQL and Access databases.
    I created a java class with the following method

    /**
     * Open a connection to a MySQL database
     * @param userName      registered user on the MySQL database.
     * @param userPassword  MySQL database password for the named user.
     * @param databaseUrl   database name eg. 'jdbc:mysql://glnd2818898.network.net/matlab'
     */
     public void openMySQLConnection(String userName, String userPassword, String databaseUrl){
        try {
            Class.forName ("com.mysql.jdbc.Driver").newInstance ();
            conn = DriverManager.getConnection (databaseUrl, userName, userPassword);
    
        }catch (SQLException e) {System.err.println ("Cannot connect to database server");}
     }
    

    This runs over an internal network, so as per the comments defining the databaseUrl glnd2818898.network.net is the MySQL server and it connects to the database ‘matlab’

    The Access interface is similar

        private static final String accessDBURLPrefix = "jdbc:odbc:Driver={Microsoft Access Driver (*.mdb)};DBQ=";
        private static final String accessDBURLSuffix = ";READONLY=true}";
    
        /**
         * Open a connection to a Access database
         * @param userName      registered user on the Access database.
         * @param userPassword  Access database password for the named user.
         * @param databaseUrl   database name eg. 'pathname/accessName.mdb'
         */
    public void openConnAccess(String userName, String userPassword, String databaseUrl){
        try {
            Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
                        String dbUrl = accessDBURLPrefix + databaseUrl + accessDBURLSuffix;
            conn = DriverManager.getConnection (dbUrl, userName, userPassword);
        }catch (SQLException e) {System.err.println ("Cannot connect to database server  :" + e.getMessage());}
    }
    

    It’s probably not the neatest java coding as it was my first attempt from a MATLAB users point of view, but it works for me.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I want to access a MySQL database from Java, but remote connection is disabled
I have read-only access to a remote MySQL database, which contains a very large
I have read-only access to a remote MySQL database, which contains a very large
I have made some statistics which I want to insert into database to see
I'm adding a record into remote mysql database and after that I want to
I want to insert a file in MYSQL database residing on a remote webserver
Briefly, I want to connect remote MYSQL firewalled database to my C# program I
I just want to be able to connect to a remote MySQL database on
I want to have access to a MySQL database (my website database) from an
I am trying to connect to a remote mysql database from an iPhone. I

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.