I'm having trouble connecting to my MySQL database using the OTL ODBC Driver on C++. I'm using Visual Studio 2019, and the problem appears to be on the connection string. My MySQL database is hosted on localhost with easyPHP, but I'll need to use an online database later, this first database is just for tests.
I tried multiple types of connection strings, but I think I didn't fully get what should I supply as the DSN
db.rlogon("root@127.0.0.1"); // connect to the database
I also tried
db.rlogon("root/@mysql"); // connect to the database
and
db.rlogon("root","","127.0.0.1:3306",0); // connect to the database
I expected it to connect, but it didn't, and I got this error:
"[Microsoft][ODBC Driver Manager] Data source name not found and no default driver specified"