This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
nano ~/.bash_profile | |
# remember to check php version being used | |
alias phpmamp='/Applications/MAMP/bin/php/php5.4.10/bin/php' | |
curl -sS https://getcomposer.org/installer | phpmamp | |
sudo mv composer.phar /usr/local/bin/composer | |
composer |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
SET @newid=0; | |
UPDATE tablename SET primary_key_id=(@newid:=@newid+1) ORDER BY primary_key_id; |