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
CREATE
DATABASE `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 ) NOT NULL ,
`contact_no` int( 20 ) NOT NULL ,
PRIMARY KEY ( `id` )
`name` VARCHAR( 100 ) NOT NULL ,
`contact_no` int( 20 ) NOT NULL ,
PRIMARY KEY ( `id` )
)
ENGINE = MYISAM
Insert some raw data for Accessing
INSERT
INTO `mydb`.`student` (`id`, `name`, `contact_no`) VALUES (NULL, 'Dashmesh',
'123456');