473,385 Members | 1,720 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

A window setup is opened when I try to connect VB to MySQL

I have a VB6 program that connects with a MySQL 4.0.17 through MyOLEDB
Provider v3.0.
At the begining of the program, when I try to connect with the
MySQL server and this one is not running, appears a MyOLEDB window
with the connection SetUp titled "MySQL Data Source Name Setup" and
with params like:
Data source name, MySQL hosts, MySQL Database name, etc...
My connection in VB is:

On Error GoTo Errores
Set oMyConexion = New ADODB.Connection
oMyConexion.ConnectionTimeout = 50
oMyConexion.CommandTimeout = 5
oMyConexion.CursorLocation = adUseClient
oMyConexion.Provider = "MySQLProv"
oMyConexion.Properties("Data Source").Value = sConnect
'oMyConexion.Properties("Data Source").Value =
"SERVER=111.111.111.111;DB=database;UID=username;P WD=pass;PORT=3306"
oMyConexion.Open

ConexionMySQL = True
Exit Function

Errores:

'Here I handle my possibles errors
Does exist any way to avoid this window and control the connection as
an error?
What's the problem, the provider, the mysql server version?

Please, I am hopeless

Thanks for all.
Jul 20 '05 #1
0 1444

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
by: Krzysztof Ksi±żek | last post by:
Hi! As almost totally newbe, I have written a simple script and I'm proud of it ;-) It connects to ftp server and uploads some files. Kind of backup. I've compiled it with py2exe and put it in...
0
by: Chetan | last post by:
I have setup an ODBC driver for my MySQL database and use a 3rd party program to connect to it. Everytime the software connects, the ODBC driver setup screen pops up. I have to click OK on it to...
2
by: find clausen | last post by:
I have opened this fullscreen (framed) window from a "top-page-setup-box" if (window.opener.top.location ....... How can I close it again from the same page, like: ...
7
by: MrFez | last post by:
Through some investigation it appears that selecting "Every visit to the page" for the IE caching setting "Check for new version of stored pages" causes the window.opener property of child windows...
0
by: Luca | last post by:
Hello to all, I have a problem during connection to mysql through oledb provider. I use Microsoft Visual C++ with MFC on Windows and I try to connect to mysql with the following call: hResult =...
3
by: simora | last post by:
Hi: Need some working sample code to post hidden form data from a php page to a new popup window. 540 x 500 centered. The popup that I'm calling already is formatted and has a TITLE:web-2007.php...
1
by: mandarchalke29 | last post by:
Dear sir, I have created a chat application using PHP,Javascript and MySQL which is embedded in my web site. I have created a link to go from that website to chat application in the same...
2
by: bobh | last post by:
Hi All, Anyone have code to share that would detect if a database was opened to database window view??? and since holding the 'you know which key' down, no form is loaded, the autoexec marco...
3
xtianixm
by: xtianixm | last post by:
i have a vb front end application and im using mysql as my database. i would like my vb application to connect in database through internet. so i setup my other computer ( windows 2000 ) as a server,...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.