Category : mysql

i get this output when i trying to connect to sql database My linker is mingw 32 QSqlDatabase: QMYSQL driver not loaded QSqlDatabase: available drivers: QSQLITE QODBC QODBC3 QPSQL QPSQL7 connect failed QSqlError("", "Driver not loaded", "Driver not loaded") this is my code database = QSqlDatabase::addDatabase("QMYSQL"); database.setPort(3306); database.setHostName("xxxxx"); database.setUserName("xxxx"); database.setPassword("xxxx"); database.setDatabaseName("xxxxx"); if(database.open()) { MainWindow *w ..

Read more

i get this output when i trying to connect to sql database QSqlDatabase: QMYSQL driver not loaded QSqlDatabase: available drivers: QSQLITE QODBC QODBC3 QPSQL QPSQL7 connect failed QSqlError("", "Driver not loaded", "Driver not loaded") this is my code database = QSqlDatabase::addDatabase("QMYSQL"); database.setPort(3306); database.setHostName("xxxxx"); database.setUserName("xxxx"); database.setPassword("xxxx"); database.setDatabaseName("xxxxx"); if(database.open()) { MainWindow *w = new MainWindow(); w->show(); hide(); ..

Read more

I wanted to uninstall MySQL and reinstall it I started uninstalling but I can’t uninstall MySQL completely because MySQL detects MySQL connector in my machine, though I have uninstalled MySQL(using control panel and a registry cleaner) MySQL installer detects the connector still and wants me to upgrade. But when I try to upgrade or remove ..

Read more

How can I get metadata from an element into boost::mysql::row ? void print_employee(const boost::mysql::row& employee) { std::cout << "Employee ‘" << employee.values()[0] << std::endl; how can i get metadata from here? I want to extract the column name for this specific value const boost::mysql::field_metadata &column = employee[0]; std::cout << column.original_field_name() << std::endl; } std::vector<boost::mysql::row> employees ..

Read more

I’m trying to use glut and MySQL (on C++) for a multiplayer video game, I already optimized the SELECT and managed to update players without losing performance but the part that keeps slowing down the game It’s: "UPDATE Players_ingame SET Pos_X = " + std::to_string(px) + ",Pos_Y = " + std::to_string(py) + ",Pos_Z = " ..

Read more

I have only been using MAMP for a few weeks now to help me manage data on my personal website however I now need to export the mysqldump from MAMP. I have seen another post with a similar question but I am using Windows and cannot find my Library for MAMP. I can only find ..

Read more