Thursday, August 30, 2012

MySql Permission for external client


GRANT SELECT ON `mysql`.`proc` TO root@192.168.10.209;
GRANT SELECT ON `mysql`.`proc` TO root@192.168.10.208;
GRANT SELECT ON `mysql`.`proc` TO root@192.168.10.207;

Grant All on ABC.* to root@192.168.10.209;
Grant All on ABC.* to root@192.168.10.208;
Grant All on ABC.* to root@192.168.10.207;

grant CREATE ROUTINE on ABC.* to root@192.168.10.209;
grant CREATE ROUTINE on ABC.* to root@192.168.10.208;
grant CREATE ROUTINE on ABC.* to root@192.168.10.207;

Log4j Layout Pattern


log4j.appender.R=org.apache.log4j.ConsoleAppender^M
log4j.appender.R.layout=org.apache.log4j.PatternLayout^M
log4j.appender.R.layout.ConversionPattern=%d{yyyy-MMM-dd HH:mm:ss}-%t-%x-%-5p %-30.30c{1} %x - %m%n

Apple paying up to $345 for your 4S ahead of iPhone 5 launch

             I found, that one of lady (Meghan Kelly) right on http://venturebeat.com that Apple is going to provide facility to exchange iPhone 4S with iPhone 5 or even you can get your money back from Apple, dependents on what is current value of your iPhone. I am not sure, how much this information is true or not, but looks like this information is not right, as information I found from Apple (USA) itself.

Please view this link....http://venturebeat.com/2012/08/29/apple-iphone-4s-buy-back/

Meghan Kelly :




Friday, August 24, 2012

Wednesday, August 22, 2012

Communication Link Failour


  1. telnet localhost 3306
  2. view /etc/mysql/my.cof file and view if bind-address 127.0.0.1 is commented out or not.
  3. commenting out "skip-networking"
  4. change "wait_timeout" and "interactive_timeout"
  5. check Operating System proxy settings
  6. change connection string
dbName = "my_database";dbUserName = "root";dbPassword = "";String connectionString = "jdbc:mysql://localhost/" + dbName + "?user=" + dbUserName + "&password=" + dbPassword + "&useUnicode=true&characterEncoding=UTF-8";

Tuesday, August 21, 2012

View child thread of a parent in linux


  1. View child thread for a specific thread via pid
ps -o nlwp

Unix Commands

To view Disk space available on Ubuntu

Use : df -kh

To View Folder space

Use : du -h

To view file size in folder

Use : ls -l -h

To transfer file from one server to other server

Use scp

To login on server

Use : ssh username@