Archive for the ‘Uncategorized’ Category

How To Export and Import of .csv data out of and into MySQL

Monday, October 26th, 2009

How To Export and Import of .csv data out of and into MySQL

 This method works for the MySQL 5  and not sure about other versions.

Exporting the MySQL data into a comma delimited (.csv) file

 SELECT * INTO OUTFILE ‘ /data.csv’ FIELDS TERMINATED BY ‘,’ OPTIONALLY ENCLOSED BY ‘”‘ LINES TERMINATED BY ‘\n’ FROM table1;

This will dump your table into a file with each row from the database being on it’s own line, columns separated by commas, and if there are any spaces or funny business going on with the data in a field, the data will be enclosed in double quotes. You can make changes to this if you like by, for instance, substituting ‘,’ with ‘\t’ would result in a tab delimited file.

Importing the comma delimited (.csv) file back into MySQL

 First thing, you’ll need to clear out your old table (otherwise the keys would collide):

DELETE FROM table;

Then you can proceed with the import:

LOAD DATA INFILE ‘ /data.csv’ INTO TABLE table1 FIELDS TERMINATED BY ‘,’ OPTIONALLY ENCLOSED BY ‘”‘ LINES TERMINATED BY ‘\n’;

Please read this article to know more about Load data query.

Ping not recognized as internal or external command

Thursday, October 22nd, 2009

Ping not recognized as internal or external command 

Solution :

Right click on My computer

Go to Properties

Click on the advance tab.

click on Environment Variables

Scroll to Path but if there is none please just create a new one and write Path under variable name and paste this: %SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem under variable value and click on ok.

Otherwise Select Path and click on Edit and paste the same.

It should fix the issue.

Swine flu Alert in Infosys

Thursday, August 13th, 2009

Some of the Infosys, Pune employees have been affected by the swine flu. Sources have confirmed that they are recovering well. Employees have been informed about the preventive measures to be taken.

They are advised not to board the office buses if they have any signs of flu or cold and can avail the separate transport facility.

 

It has setup medical care centers in his Pune campus for its employees. Employees who have flu symptoms can avail this facility and some suspected cases have been directed to govt medical centers.

 

There are some rumors going around in news channels that Infosys has constructed one building in Pune saloon hospital which is also named as Infosys. Infosys has denied this rumor and patients kept in that ward have no link with Infosys.

 

In Chennai, Infosys, swine flu disinfectant gels have been setup in all buildings. It has advised its employees to use the gel every 2 hours.

Best Tamil songs download websites

Saturday, August 8th, 2009

  1. http://mp3.tamilwire.com/
  2. www.tamilbeat.com/


How to reach Mcity …

Monday, July 27th, 2009

How to reach Ranipet from Mcity …

 

Mcity Bus stop:   Take a route bus 500 or 56 and get down in Chengalpet new bus stand

Chengalpet: From Chengalpet, take a kanchipuram bus [212 H or 212 B LSS ] Avoid travelling in 212 B – Town buses.

 

Kanchipuram: To reach Ranipet or Muthu kadai, take Vellore [avoid Arcot by pass riders], Chithoor or Kudhiyatham buses.

 

How to reach BHEL from Mcity …

 

Mcity Bus stop: Take a route bus 500 or 56 and get down in Chengalpet new bus stand

Chengalpet: From Chengalpet, take a kanchipuram bus. Avoid travelling 212 B – Town bus.

Take 212 B LSS or 212 H buses which are faster than former one.

 

Kanchipuram: To reach Ranipet or Muthu kadai, take chithoor or Kudhiyatham buses.

 

 

How to reach Mcity from BHEL …

 

BHEL Bus stop: Take Tambaram bus and get down at Kanchipuram Bus stand.

Kanchipuram:  Take 212 B LSS or Kalpakkam buses. Avoid going in 212 B as they are town buses and slower. Get down at Chengalpet old bus stand.

Chengalpet old bus stand: Take Tambaram or 500 route bus to reach Mcity bus stop.