You need to connect any DBMS to the Netbeans project (C ++, MinGW). I spent a day trying to connect MySQL without ever finding instructions or documentation anywhere. All just by how to make friends VS and MySQL. Out of the box with MySQL DBMS is Connecter C ++.

  • I connect to the project as follows:
    "Service-> Parameters-> C / C ++ -> Code Assistant-> C / C ++ Compiler."

  • I add here:
    "C: \ Program Files \ MySQL \ MySQL Server 8.0 \ include" and "C: / Program Files / MySQL / Connector C ++ 8.0 / include / jdbc".

  • Further:
    Right-clicked the action menu with the project "Properties-> Collect-> C ++ Compiler -> Include Directories."

  • Inserted the same ways:
    "C: \ Program Files \ MySQL \ MySQL Server 8.0 \ include" and "C: / Program Files / MySQL / Connector C ++ 8.0 / include / jdbc".

  • Then, "Properties-> Collect-> Linker-> Additional Library Catalogs . "

  • I insert the paths to "C: \ Program Files \ MySQL \ MySQL Server 8.0 \ lib" and "C: \ Program Files \ MySQL \ Connector C ++ 8.0 \ lib64".

  • In "Properties-> Collect-> Linker-> Libraries" I set the paths to "libmysql.dll" - "C: \ Program Files \ MySQL \ MySQL Server 8.0 \ libmysql.dll".

The problem is that with this connection, netbeans says that it does not know the mysql.h file, therefore it is not possible to work with the database. Tell me, please, how to connect MySQL to netbeans, or how easier / faster another DBMS can be connected. Thank you in advance

    0