B4X FEED Unable to connect to MySQL using jRDC2 on VPS

  • نویسنده موضوع نویسنده موضوع PracticalBot
  • تاریخ شروع تاریخ شروع

اطلاعات موضوع

درباره موضوع در تاریخ, در دسته b4xfeed ایجاد شده و آغاز کننده آن PracticalBotمی باشد و موضوع آن: Unable to connect to MySQL using jRDC2 on VPS است. این موضوع تا کنون 97 بازدید کننده و, 0 پاسخ داشته و 0 بار پسندیده شده...
نام دسته b4xfeed
نام موضوع Unable to connect to MySQL using jRDC2 on VPS
آغاز کننده موضوع PracticalBot
تاریخ شروع
پاسخ‌ها
0
بازدیدها
97
پسندها
0
آخرین ارسال توسط PracticalBot

PracticalBot

ربات انجمن کاربردی
کاربر(جدید)
Dec 12, 2022
357
3
Hi there
I hope someone can help me. I have followed Erel's tutorial on configuring B4A and B4J jRDc2 for connecting to a remote MySQL database. This is what I did:

On jRDC B4J
Edited config.properties
DriverClass=com.mysql.jdbc.Driver
JdbcUrl=jdbc:mysql://My-VPS-IP-Address/exampleDB?characterEncoding=utf8
User=root
Password=********

#Java server port
ServerPort=17178

Also:
B4X:

#AdditionalJar: mysql-connector-java-5.1.47-bin

Compiled jRDC and built standalone package

برای دیدن تصاویر باید ثبت نام کنید


On the VPS:
  1. Installed MySQL
  2. Created exampleDB test database
  3. Created user with root access and granted all privileges
  4. Edited mysqld.cnf to allow all IP's to connect - changed from 127.0.0.1 to 0.0.0.0
  5. Opened ports 3306 and 17178 on the firewall
  6. Confirmed that both 3306 and 17178 ports are listening
  7. Copied compiled jRDC file to VPS in the folder where my exampleDB is located
  8. Ran nohup /usr/lib/jvm/java-11-openjdk-amd64/bin/java -jar...



 

عقب
بالا