JAFFAR

Blog

view:  full / summary

mysql database backup by using linux

Posted by jaffar on June 9, 2013 at 1:40 AM Comments comments (0)


    Take database back up by using linux command

    Open  putty and execute the following command

  1. mysql -u  root -p
  2. ssh <username>@<domain name>
  3. mysqldump --user=<database name>  --password --single-transaction --opt <database name> > <save database name>.sql

 

 

Install PEAR and PHP_CodeSniffer

Posted by jaffar on June 9, 2013 at 1:35 AM Comments comments (0)

Installing PHP 5.4 and PEAR

PHP5.4 is pretty easy to install on windows. Although it doesn’t have a self installing binary like some of the previous versions, the install is pretty straight forward.

  1. Download PHP 5.4 from php.net here (you want to download the VC9 x86 thread safe zip)
  2. Extract the downloaded zip to c:\php
  3. In your favorite browser go to http://pear.php.net/go-pear.phar to download go-pear.phar
  4. Move go-pear.phar from your download directory to c:\php
  5. Rename the file php.ini-development or php.ini-production to php.ini in the directory c:\php
  6. Add php to the PATH environment variable, by appending ;c:\php to it
  7. note: If you’re not sure how to set the path variable in windows 7 this is a good guide.
  8. Open a command prompt with administrative permissions (go to, all programs –> accessories and right-click command prompt and select “run as administrator”;)
  9. Go to the php directory
  10. cd c:\php
  11. Beginning the PEAR install
  12. php go-pear.phar
  13. Select system for the install type (it’s the default, so you can just press enter)
  14. Next you will be shown the paths that PEAR will use, you want to change number 11 to c:\php\pear.ini
  15. –>To do this type 11, press enter, then type c:\php\pear.ini
  16. After the install has finished run c:\php\PEAR_ENV.reg to finish the installation
  17. Installing PHP Codsniffer
  18. Open a command prompt with administrative rights
  19. Go to the PHP install directory
  20. cd c:\php
  21. Install PHP Codesniffer
  22. pear install PHP_CodeSniffer

  

Ref: http://kogentadono.com/2012/10/08/installing-php-5-4-and-php-codesniffer-on-windows/#comment-24

 


Rss_feed