Recommand · December 8, 2021 0

how to connect apache cordova with MySql remotely

I want to connect my app android in apache cordova with a remote database in phpymyadmin in cPanel, I tried with NodeJS but it appears:

  errno: 1045,
  sqlMessage: "Access denied for user 'progolfa_clubgolf'@'' (using password: YES)",
  sqlState: '28000',
  fatal: true


var mysql = require('mysql');
var conexion = mysql.createConnection({
    host: '',
    database: 'progolfa_clubgolf',
    user: 'progolfa_clubgolf',
    password: '******'

How else can I connect using NodeJs or some other technology, I am new to mobile development and I have been researching but I don’t understand how to make this connection