473,396 Members | 2,154 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,396 software developers and data experts.

How to connect MySQL server using ODBC connector? how to configure ODBC connector 3.5

4
What values should I put in every open fields? I previously used XAMPP and here's the Global config:
Expand|Select|Wrap|Line Numbers
  1. Private con As New MySqlConnection("Server=localhost; Port=3306; Database=payrolldb; User Id=root; Password=''; ")
How to change this configuration if I'm going to use the ODBC connector and stand alone MySQL rather than XAMPP?
please help as I'm not familiar with the ODBC connection.

I have to connect to peer-to-peer network: Server-client connection using that database server, what are the configurations that i need?

Thanks in advance!
Dec 17 '12 #1
6 5843
ivory
4
Our group are trying to make a Server-client peer-to-peer connection using 2 laptops, and we used VB.Net and MySQL Xampp as the database. The network connection was fine, the 2 laptops successfully ping each other. But when we tried the server-client connection, it was not working. The actions being done on client PC was not recorded on the Server laptop. This is our connection codes in the Global Configuration in VB.Net:

Expand|Select|Wrap|Line Numbers
  1. Private con As New MySqlConnection("Server=localhost; Port=3306; Database=payrolldb; User Id=root; Password=''; ")
We tried to replace the value of Server from localhost to the IP ADDRESS of the Server PC but still not working.

please help us to solve this problem.
Dec 17 '12 #2
johny10151981
1,059 1GB
You said you are trying to do peer to peer then your host cant be localhost. use static ip of the server.

And dont forget to let the user to connect with that IP. You should read more about Host issue.
Dec 17 '12 #3
johny10151981
1,059 1GB
What compiler are you using? if c/c++ then directly use there libraries to connect
Dec 17 '12 #4
ivory
4
hi johny10151981,

I've already tried assigning static IP ADD, both pc has static IP. 192.168.1.1 is the SERVER IP while 192.168.1.2 is the client IP address.

Still server-client connection is not working, though network connection is just fine.
Dec 17 '12 #5
johny10151981
1,059 1GB
As I told you, your user would have to have ability to connect with 192.168.1.2. i.e. create the same user with same password and this host
Dec 18 '12 #6
PsychoCoder
465 Expert Mod 256MB
Since your 2 threads are basically asking the same thing I've merged them into a single thread.
Dec 18 '12 #7

Sign in to post your reply or Sign up for a free account.

Similar topics

1
by: Nikola Skoric | last post by:
Hi there, Is it possible to force PHP to connect to MySQL server using SSL? Or is there no way for PHP to connect to MySQL server on another machine by encrypted connection? -- "Now the...
7
by: ajikoe | last post by:
How can python connect to server which use SSH protocol? Is it easy since my python has to run third party vendor, write data, read data inside the server (supercomputer). Any suggestion? ...
5
by: Carlo Tambuatco | last post by:
I have set up MySQL on my home computer, and I am writing a PHP enabled web site to run queries on this database. I have created a database called 'weather' on mysql that I want to access via my...
1
by: shun | last post by:
Hello, I need an sample program to connect mysql server by using odbc. thanks in advance
4
by: courtney.machi | last post by:
Hello, I am trying to connect to a remote mysql server through php. Here's the code: mysql_connect("my.hostname.edu", "username", "password") or die (mysql_error());...
0
by: kelvenng | last post by:
Hi all hope some one can help me solve my problem. Actually I want import data from excel to my MYSQL server by using VB6 I facing the problem on my coding and system show me the error. below is...
2
by: =?Utf-8?B?RGF2aWRF?= | last post by:
Hi, I try to connect to Exchange server using MAPI. I need to access a special user inbox and read all his new mails. The code I wrote work good, but I get my inbox instead of the user I need....
2
by: mra | last post by:
pls help i have some probles while connecting mysql server from a client machine using visual basic. thanks in advance
1
by: naveenkongati | last post by:
Hi, Our mysql server is installed on Linux Fedora machine. When I try to acces MySql server from a windows based remote location using a GUI TOOL, i am getting the following error "Error...
1
by: mahesan | last post by:
How you connect to mySQL Server using PHP: we have a mySQL server in one host,say, 192.168.1.100 I am trying a program from 192.168.1.200, How do I make use of the databases in the mySQL...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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
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
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
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...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

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.