If you use a native MySQL C/C++ interface, you specify the host address at connection time. If you're using ODBC, then it's probably a matter of setting a registry value before connecting. If you're using a C++Builder component, then there would be a property you could set before connecting.
Thanks for your help. But let me explain in more detail.
I'm using Borland C++ and MySQL 5.0 server + ODBC Connector 3.51. ODBC has an alias of localhost. The host information is saved at that alias. When I connect to MYSQL server on localhost, I use that alias and enter no IP (Unfortunately). I can't even change the host information during design time in Borland. I'm trying to connect that server by entering the IP address of MySQL server on a remote computer. I think the solutions are limited and one of that is creating a new alias from C++(I dunno HOW?) and the second one is building a client-server application and connecting to the MySQL server directly from the server-side of my application but again I dunno HOW? Can you please help me in this case now? Thanks for your read...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.