Ver Mensaje Individual
  #1 (permalink)  
Antiguo 06/05/2012, 10:14
Avatar de juan_14nob
juan_14nob
 
Fecha de Ingreso: abril-2010
Mensajes: 552
Antigüedad: 14 años, 1 mes
Puntos: 6
Conectar a mysql por IP de mi hosting

Hola, antes de todo vale aclarar que llevo toda la noche de ayer y algo de la mañana de hoy averiguando sobre como hacer la conexion.

De todo lo que busque, en la pagina de

http://www.connectionstrings.com/mysql

vi masomenos como de la siguiente manera

Specifying TCP/IP port

Driver={MySQL ODBC 5.1 Driver};Server=IP_SITIO;Port=3306;Database=DBNAME; User=USER; Password=PASS;Option=3;

Código visual basic:
Ver original
  1. Private Sub Form_Load()
  2. Set Conexion = New Adodb.Connection
  3.  
  4. Conexion.ConnectionString = "Driver={MySQL ODBC 5.1 Driver};Server=IP_SITIO;Port=3306;Database=DBNAME;User=USER; Password=PASS;Option=3;"
  5.  
  6. Conexion.Open
  7.  
  8.  
  9. End Sub



Pero cuando pruebo el programa me dice el siguiente ERROR :
"Error '-2147467259 (80004005)' en tiempo de ejecucion:

[MySQL][ODBC 5.1 Driver]Access denied for user 'usuario_2821'@'190.2.109.30'(using password: YES)"




Saludos.!