mysql.zip ------- support library and include folder. phonebookdir.sql ------- database PhoneBook ------- source code
-
copy mysql folder to c drive
-
open code blocks settings -> compiler -> linker settings -> add browser 'libmysql.lib' in the mysql folder in lib folder path eg :- C:\MySql\content\lib\libmysql.lib
Now in settings -> compiler -> search directories -> compiler -> add browse 'include' folder in mysql folder path eg :- C:\MySql\content\include
-
Than click on 'OK'
-
create new project console apllication in code blocks
-
copy paste the code from 'FinalPhoneBook.cpp' to 'main.cpp';
-
watch this video to create your database after '8:30 min'
https://www.youtube.com/watch?v=xdvVKywGlc0
and the database structure will be like
Name --- varchar(30) Phone_No --- varchar(10);
for a sample "database look.png" file is present in the folder.