mabaomsi Posted October 14, 2017 Author Posted October 14, 2017 Okay, but is really possible to connect to a database from another IP-s in the same time with one "Cpanel" account?
Krydos Posted October 14, 2017 Posted October 14, 2017 Yes, there is no limit to the number of IPs that can connect to a database. The limitation is on the maximum number of simultaneous open connections regardless of what IP or localhost they come from.
mabaomsi Posted October 15, 2017 Author Posted October 15, 2017 Okay, so need to close all the connections, all the time.Thanks for your great help! Nave a nice day! 😀
Krydos Posted October 15, 2017 Posted October 15, 2017 I have another idea for you. Rather than your visual basic program connecting directly to the database, why not have your program connect to a php file and the php file can connect to the database? Php actually knows how to close mysql connections.
mabaomsi Posted October 17, 2017 Author Posted October 17, 2017 Aham... but vb.net knows its too. So i think i can create sqlconn.close, so the close property is available here too.
wolstech Posted October 17, 2017 Posted October 17, 2017 The close action on vb.net doesn't work how you think it does. It leaves the connections open behind the scenes even after you tell it to close them. If it closed them like other languages, you wouldn't be having this issue. PHP actually closes them when you tell it to close them.
mabaomsi Posted October 19, 2017 Author Posted October 19, 2017 Ok thanks for your great help. I try to use php config.
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now