Your IP : 216.73.216.40


Current Path : /var/www/html/mmishra/indem/
Upload File :
Current File : /var/www/html/mmishra/indem/.mysql_history

show tables;
create table faqs (
id int primary key auto_increment,
topic varchar(255),question text,
dated date,
ipaddress varchar(15));
create table faqs ( id int primary key auto_increment, topic varchar(255),question text, dated date, ipaddress varchar(15));
desc faqs;
alter table add uid varchar(20) after id;
alter table faqs add uid varchar(20) after id;
desc faqs;
select * from faqs;
create table solutions (uid varchar(20), id int, solution text, dated date, ipaddress varchar(15));
desc solutions;
alter table modify id faqs int;
alter table change id faqs int;
alter table drop id;
alter table solution change id faqs int;
alter table solutions change id faqs int;
desc solutions;
desc faqs;
alter table solutions add id int auto_increment;
desc faqs;
desc solutions;
alter table solutions add primary key(id) auto_increment;
alter table solutions modify id int primary key auto_increment;
alter table solutions add primary key(faqs,uid);
show tables;
create table glossary(id int primary key auto_increment,term varchar(255) unique,definition text);
desc glossary;
ls
;
show tables
;
create table temp(a int,b varchar(255),c text);
load data infile /srv/www/websites/indem/glossary1.php into table temp fields terminated by ';' enclosed by '"' lines terminated by '\n';
load data infile '/srv/www/websites/indem/glossary1.php' into table temp fields terminated by ';' enclosed by '"' lines terminated by '\n';
select * from temp;
select * from temp where a=5300;
select a from temp where a=5300;
select b from temp where a=5300;
select c from temp where a=5300;
delete from temp;
load data infile '/srv/www/websites/indem/glossary1.php' into table temp fields terminated by ';' enclosed by '"';
select c from temp where a=5300;
select b from temp where a=5300;
select a,b from temp where a=5300;
select a,b from temp;
select b,c from temp;
delete from temp;
desc temp;
alter table temp drop a;
desc temp;
load data infile '/srv/www/websites/indem/glossary1.php' into table temp fields terminated by ';' enclosed by '"' lines terminated by '\n';
select b,c from temp limit 10;
desc temp;
system ls
system vi glossary1.php
delete from temp;
load data infile '/srv/www/websites/indem/glossary1.php' into table temp fields terminated by ';' enclosed by '"' lines terminated by '\n';
select b,c from temp limit 10;
select b,c from temp;
delete from temp;
load data infile '/srv/www/websites/indem/glossary1.php' into table temp fields terminated by ';' enclosed by '"';
select b,c from temp;
delete from temp;
show tables;
create table feedback select * from ada.feedback;
show tables;
create database iiita;
use iiita;
show tables;
create database webiiita;
use webiiita;
source iiitaadadb.sql
source iiitaada20jul.sql
use wwwdb;
source wwwdb.sql
source wwwdb.sql;
!
;
@wwwdb.sql
;
use wwwdb;
source wwwdb.sql
show tables;
desc faqs;
alter table daqs change ipaddress ip varchar(15);
desc faqs;
alter table faqs change ipaddress ip varchar(15);
desc faqs;
show databases;
create database conclave2;
create database iiita1;
create database iiita3;
use conclave2;
source database.sql;
show tables;
desc text;
use iiita1
source database.sql;
show tables;
source database.sql;
show tables;
use iiita3;
source database.sql;
show tables;
create user 'root'@'%' identified by password('mysql');
create user 'root'@'%' identified by 'mysql';
set password for 'root'@'%' = password('mysql');
flush privileges;
grant all privileges on *.* to `root`@'%' with grantoption;
grant all privileges on *.* to `root`@'%' with grant option;
flush privileges;
show tables;
desc webpages;
select title, keywords from webpages;
desc webpages;
 id           | varchar(50)                           | NO   | PRI |         |       |
| title        | varchar(255)                          | YES  | UNI | NULL    |       |
| content_type | enum('static','dynamic','url','file') | YES  |     | static  |       |
| access_scope | enum('public','admin')                | YES  |     | public  |       |
| content      | longtext                              | NO   |     |         |       |
| keywords     | varchar(255)                          | YES  |     | NULL    |       |
| counter      | int(11)                               | NO   |     | 0       |       |
| dated     ;
id           | varchar(50)                           | NO   | PRI |         |       | | title        | varchar(255)                          | YES  | UNI | NULL    |       | | content_type | enum('static','dynamic','url','file') | YES  |     | static  |       | | access_scope | enum('public','admin')                | YES  |     | public  |       | | content      | longtext                              | NO   |     |         |       | | keywords     | varchar(255)                          | YES  |     | NULL    |       | | counter      | int(11)                               | NO   |     | 0       |       | | dated;
source /home/indem/icdp.sql
source icdp.sql
source /srv/www/websites/indem/icdp/icdp.sql
show tables;
show databases;
alter database icdp rename cms;
use cms;
source icdp27.sql;
show tables;
select * from accesslogs;
show tables;
CREATE TABLE `spider` (
  `id` bigint(20) NOT NULL auto_increment,
  `domain` varchar(150) NOT NULL,
  `url` varchar(2000) NOT NULL,
  `parentid` int(11) NOT NULL,
  `visitflag` int(11) NOT NULL,
  `type` varchar(20) NOT NULL,
  `level` mediumint(9) NOT NULL,
  PRIMARY KEY  (`id`)
)
;
CREATE TABLE `spider` (   `id` bigint(20) NOT NULL auto_increment,   `domain` varchar(150) NOT NULL,   `url` varchar(2000) NOT NULL,   `parentid` int(11) NOT NULL,   `visitflag` int(11) NOT NULL,   `type` varchar(20) NOT NULL,   `level` mediumint(9) NOT NULL,   PRIMARY KEY  (`id`) );
show tables;
select * from accesslogs;
select * from accesslogs limit 1,10;
select * from accesslogs limit 1,5;
use mysql
show tables;
select * from db;
select * from user;
exit;
use mysql
select * from user;
use mysql
show tables;
select * from user;
flush privileges;
create user indem identified by password('#indemica');
create user indem identified by 'aa';
flush privileges;
select * from user;
set password for indem = password('#indemica');
select * from user;
flush privileges;
show tables;
select * from pollscore;
select * from pollScore;
  
alter table add contraint unique(id,uid);
alter table pollScore add contraint unique(id,uid);
alter table pollScore add constraint unique(id,uid);
desc pollScore;
select * from pollScore limit 10;
alter table pollScore drop constraint unique(uid);
alter table pollScore drop unique(uid);
alter table pollScore add constraint unique(uid,option);
alter table pollScore add constraint unique(uid,choice);
alter table pollScore delete constraint unique(id,uid);
alter table pollScore drop constraint unique(id,uid);
alter table pollScore drop unique(id,uid);
alter table pollScore drop constraint unique(uid);
desc pollScore;
desc pollChoice;
update pollChoice set score=1;
show tables;
select * from glossary;
desc glossary;
show tables;