MySQL - NO RECONOCE LA BASE DE DATOS

 
Vista:

NO RECONOCE LA BASE DE DATOS

Publicado por Idelvis Parra (10 intervenciones) el 19/10/2006 14:24:54
DESPUES DE UTILIZAR ESTA PROGRAMACION DE CONEXION CON VB6 ME UN ERROR QUE LO DESCRIBO MAS ABAJO:

Dim strServidor As String
Dim strBaseDatos As String
Dim strUsuario As String
Dim strContrasena As String

strServidor = "localhost"
strBaseDatos = "inventario"
strUsuario = "root"
strContrasena = "soporte"

cnnConexion.ConnectionTimeout = 30
cnnConexion.CursorLocation = adUseClient
cnnConexion.ConnectionString = "DRIVER={MySQL ODBC 3.51 Driver}; SERVER=" & strServidor & "; DATABASE=" & strBaseDatos & " ;PWD=" & strContrasena & "; UID=" & strUsuario & ";OPTION=3"
cnnConexion.Open

Set cmdComando.ActiveConnection = cnnConexion
cmdComando.CommandType = adCmdText

EL ERROR ES: [MYSQL][ODBC 3.51 Driver] incorret database name 'inventario'.
Y ESA ES LA BASE DE DATOS QUE TENGO CORRECTAMENTE.
Valora esta pregunta
Me gusta: Está pregunta es útil y esta claraNo me gusta: Está pregunta no esta clara o no es útil
0
Responder