Android Question I want an example in connecting b4a with mysql online .. Thanks

Discussion in 'Android Questions' started by alfaiz678, Aug 8, 2019.

  1. alfaiz678

    alfaiz678 Member Licensed User

  2. Erel

    Erel Administrator Staff Member Licensed User

    The client code is exactly the same. Just need to update the url to the correct address.
     
    BillMeyer likes this.
  3. alfaiz678

    alfaiz678 Member Licensed User

    What should I change in this code in the client code?
    Code:
    Private const rdcLink As String = "http://xxx.xxx.x.x:17178/rdc"
    What about config file and b4j application
    I need more detail
     
    Last edited: Aug 8, 2019
  4. José J. Aguilar

    José J. Aguilar Active Member Licensed User

    We need more details too to help you

    Where will you run your mysql server? And where will you run you jRDC2 server?

    Your jRDC2 server must point to your MySql server (in the config file). If they are in the same computer (VPS), you will have something like:
    Code:
    JdbcUrl=jdbc:mysql://localhost:3306?characterEncoding=utf8
    If they are in different computers, it should be something like:
    Code:
    JdbcUrl=jdbc:mysql://yourserverip:3306?characterEncoding=utf8
    The client code (your app), must point to your jRDC2 server...

    Maybe this post be usefull to you:

    https://www.b4x.com/android/forum/threads/how-to-connect-to-mysql-database.98619/#post-623279
    https://www.b4x.com/android/forum/threads/server-run-a-server-on-a-vps.60378/#post-423579
     
  5. alfaiz678

    alfaiz678 Member Licensed User

    On my free hosting
    Server: sql12.freemysqlhosting.net
    That's what I want to know
    Do I have to run jRDC2 on a computer even if I want to connect online

    I want to connect online directly
    And the use of servers are all online only
    And connect to it through b4a
    Do without computer Is this possible in this library
     
    Last edited: Aug 8, 2019
  6. José J. Aguilar

    José J. Aguilar Active Member Licensed User

    Erel likes this.
  7. alfaiz678

    alfaiz678 Member Licensed User

Loading...
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice