Using these easy steps you can easily retrieve the data from MYSQL database. In this example I am assuming that you have already created MYSQL database and already contains some tabular data.
Create database named mydb
CREATEDATABASE `mydb`;
Create Table student on mydb Database:
Table info is created with three fields: id, name and Email Address. Id will be automatically incremented after every insert operation.
CREATE TABLE `mydb`.`student` (
`id` INT NOT NULL AUTO_INCREMENT,
`name`VARCHAR(100)NOTNULL,
`contact_no`int(20)NOTNULL,
PRIMARYKEY(`id`)
`name`VARCHAR(100)NOTNULL,
`contact_no`int(20)NOTNULL,
PRIMARYKEY(`id`)
) ENGINE = MYISAM
Insert some raw data for Accessing
INSERT INTO `mydb`.`student` (`id`, `name`, `contact_no`) VALUES (NULL, 'Dashmesh', '123456');