Invision Community 4: SEO, prepare for v5 and dormant account notifications Matt November 11, 2024Nov 11
Posted October 11, 20195 yr Hello!I have seen this done by other people but I just can't seem to figure it out!So I am currently trying to connect the database of the users on my Forum with a c# and c++ application.I know you can do this with things like phpMyAdmin and using their databaseSo I was wondering if you have any available tutorials or source codes that I could look at that would help me connect my forum member database to my C# and C++ Application, C++ Preferred.Thank you!And hopefully I can do this as it would be so great!
October 11, 20195 yr If you're just trying to connect to a database, use the appropriate PHP database connection functions. If it's a MySQL database, then you can even use our built in \IPS\Db driver (just pass different connection details to it to create a new instance). If using something like MSSQL you'll have to use the lower level mssql PHP functions.
October 12, 20195 yr Why are you worried about IPS to begin with? C# / C++(eww) has build in SQL tools. Just connect to the DB directly.
October 13, 20195 yr 7 hours ago, charlootus said: yah see! I didn't know that (i bet u use python) eww Yup, and C#, PowerShell, PHP, Angular, React, various machine learning tool, and the list goes on. Stackoverflow would have more information for you on how to connect to a SQL database from C++.
October 13, 20195 yr Author 16 hours ago, Aiwa said: Yup, and C#, PowerShell, PHP, Angular, React, various machine learning tool, and the list goes on. Stackoverflow would have more information for you on how to connect to a SQL database from C++. Yes I know how to connect to a DB but I don't know where to find my DB Info! I'm so lost I've never used IPS before. Could you maybe provide a link of where I can get the info to connect to my DB?
October 13, 20195 yr 1 hour ago, charlootus said: Yes I know how to connect to a DB but I don't know where to find my DB Info! I'm so lost I've never used IPS before. Could you maybe provide a link of where I can get the info to connect to my DB? In case you didn't save your DB credentials yourself, you can always refer to your config file.
October 13, 20195 yr Author 5 minutes ago, Joel R said: In case you didn't save your DB credentials yourself, you can always refer to your config file. Maybe it's because I don't selfhost? Is that why I can't find this info? Where would I find the config file?
October 13, 20195 yr 26 minutes ago, charlootus said: Maybe it's because I don't selfhost? Is that why I can't find this info? Where would I find the config file? You should see a 'conf_global.php' in the root of your IPS installation on your server.
October 13, 20195 yr Author 1 minute ago, Joel R said: You should see a 'conf_global.php' in the root of your IPS installation on your server. Where do I find this! I used IPS webhosting I dont have any FTP info and I have no idea where to find any of this information
October 13, 20195 yr Author Just now, Joel R said: You're cloud hosted? Submit a ticket in the Client Area. Already did! They said they couldn't help me, I'll try again
October 14, 20195 yr We don't allow external MySQL connections for security purposes last I checked, so that's not going to be an option in your case.
October 14, 20195 yr Correct - you cannot connect directly to the database on Community in the Cloud. Generally speaking, however, you should never interface with the database directly. In your case the REST API would probably be a better alternative.
Archived
This topic is now archived and is closed to further replies.