Код: Выделить всё
try {
driver = get_driver_instance();
conn = driver->connect("tcp://localhost:3306", "root", "");
if (conn) {
cout
Подробнее здесь: [url]https://stackoverflow.com/questions/78731723/why-is-my-c-program-unable-to-connect-to-my-mysql-xampp-database[/url]
Мобильная версия