This file contains hidden or 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
bin/magento setup:install --base-url=http://dev.magento2/ \ | |
--db-host=localhost --db-name=magento2 \ | |
--db-user=root --db-password=root \ | |
--admin-firstname=Magento --admin-lastname=User | |
[email protected] \ | |
--admin-user=admin --admin-password=admin123 | |
--language=en_US \ | |
--currency=USD --timezone=America/Chicago | |
--cleanup-database \ | |
--use-rewrites=1 |
This file contains hidden or 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
UPDATE `customer_entity` | |
SET `password_hash` = CONCAT(SHA2('xxxxxxxxYOURPASSWORD', 256), ':xxxxxxxx:1') | |
WHERE `entity_id` = 1; |
This file contains hidden or 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
You can clear the cache programmatically by calling the \Magento\Framework\ App\CacheInterface::remove() method. |
This file contains hidden or 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
#Put on your .bashrc or .bash_profile | |
function parse_git_branch () { | |
git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/ (\1)/' | |
} | |
RED="\[\033[0;31m\]" | |
YELLOW="\[\033[0;33m\]" | |
GREEN="\[\033[0;32m\]" | |
NO_COLOR="\[\033[0m\]" |
This file contains hidden or 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
If you don't remember the password you set for root and need to reset it, follow these steps: | |
Stop the mysqld server, this varies per install | |
Run the server in safe mode with privilege bypass | |
sudo mysqld_safe --skip-grant-tables; | |
In a new window connect to the database, set a new password and flush the permissions & quit: | |
mysql -u root |
This file contains hidden or 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
--- Install Composer --- | |
cd /usr/local/bin | |
sudo curl -s http://getcomposer.org/installer | sudo php | |
sudo mv composer.phar /usr/local/bin/composer | |
---------------------------------------------------------- | |
--- Install Dependencies --- |