Home > Software engineering >  How to modify an exe program within the specified server IP address
How to modify an exe program within the specified server IP address

Time:11-13

Switch the server now, but there haven't change program

CodePudding user response:

Seems to be the ini file, the config. It is not have ServerIP ini, modified to restart the program
Usually connect the MySQL database for IP, port (if the preset value, there is no need to), user name, password
If write die within the program, there would be no way to change, if in the ini, then change the ini file
But the user/pasword have security concerns about written in clear text in the ini file

CodePudding user response:

refer to the second floor ypk9999 response:
seems to be the ini file, the config. It is not have ServerIP ini, modified to restart the program
Usually connect the MySQL database for IP, port (if the preset value, there is no need to), user name, password
If write die within the program, there would be no way to change, if in the ini, then change the ini file
But user/pasword have security concerns about written in clear text in the ini file
change the status quo of IP or not, whether where there is limited?

CodePudding user response:

Not sure your server is only for IP or another, if is the other one, and the original same set?
In the IP if in different network segments, whether can be connected? Is there a firewall blocking?
Suggest that you first in VB program on the computer can use MySQL workbench to see even on database
A lot of problems is not necessarily a VB
IP is the worst situation, of course, such as connection strings is dead in the code written, inside, then there is no source, that is difficult

CodePudding user response:

Use the mysql client first, connect the target database, and see whether can normal connection

CodePudding user response:

reference 5 floor ypk9999 reply:
not sure your server is not only change the IP or the other, if is the other one, and that the same original set?
In the IP if in different network segments, whether can be connected? Is there a firewall blocking?
Suggest that you first in VB program on the computer can use MySQL workbench to see even on database
A lot of problems is not necessarily a VB
IP is the worst situation, of course, such as connection strings are written to die in the code, and then there is no source, that is difficult
changed a server, a little difference on the IP, I with he said give it a try

CodePudding user response:

refer to 6th floor crispy big ice cream reply:
with mysql client program, first connect the target database, and see whether can normal connection
good! Thank you.

CodePudding user response:

refer to 7th floor qq_45877264 response:
Quote: refer to the fifth floor ypk9999 reply:
not sure your server is not only change the IP or the other, if is the other one, and that the same original set?
In the IP if in different network segments, whether can be connected? Is there a firewall blocking?
Suggest that you first in VB program on the computer can use MySQL workbench to see even on database
A lot of problems is not necessarily a VB
IP is the worst situation, of course, such as connection strings is to die in the code, and then there is no source, that is difficult
changed a server, a little difference on the IP, simply try to tell
mysql. The DLL file limit is?

CodePudding user response:

Grab a database tools like Navicat to even under the new database IP
If not connected, the solution
If you can connect
If the program can repay connect to the database error, you can determine the configuration of the database connection elsewhere, or write dead in exe
So you need to reverse change
  • Related