B4J Question MySQL Connection Fail

Brian Michael

Active Member
Licensed User
Hi, i trying to connect my app to MYSQL with jSQL.

I'm getting an error message: "java.sql.SQLException: Access denied for user 'u601000353_sat'@'71.34.185.82' (using password: YES)"

1718416117146.png


The thing is i have a separated project and it works. The difference is on my main project i create a module and i add all the functions and it won't connect.

I'm using this code for initialize:
B4X:
    Dim conn As String = $"jdbc:mysql://${Main.Host_DBLocation}?characterEncoding=utf8&autoReconnect=true&useTimezone=true&&serverTimezone=UTC&Pooling=True"$
    SQL.InitializeAsync("SQL","com.mysql.jdbc.Driver", conn,Main.Host_DBUsername,Main.Host_DBPassword)


Second Project:

1718416071302.png
 
Top