mysql -u root -p
Create database command
CREATE DATABASE m2;
Grant privilege
GRANT ALL PRIVILEGES ON m2.* TO 'root'@'localhost';
mysql -u root -p
CREATE DATABASE m2;
GRANT ALL PRIVILEGES ON m2.* TO 'root'@'localhost';
1G
with 2G
.faillocate
is not installed or if you get an error message saying fallocate failed: Operation not supported
then you can use the following command to create the swapsudo dd if=/dev/zero of=/swapfile bs=1024 count=1048576
mkswap
utility to set up the file as Linux swap area:sudo mkswap /swapfile
sudo swapon /swapfile
/etc/fstab
file and append the following line:/swapfile swap swap defaults 0 0
swapon
or the free
command as shown below:NAME TYPE SIZE USED PRIO
/swapfile file 1024M 507.4M -1
sudo free -h
$ cd ~
$ sudo curl -sS https://getcomposer.org/installer | sudo php
$ sudo mv composer.phar /usr/local/bin/composer
$ sudo ln -s /usr/local/bin/composer /usr/bin/composer
5. What step during the layout loading is the node processed?
A. After the generation of layout blocks.
B. Vefore the generation of layout update XML, but after the generation of layout blocks.
C. Before the generation of layout blocks, but after the generation of layout XML.
D. After the generation of layout blocks, but before rendering the page.
Magento 2 | How can we use jQuery without "require(['jquery'],function($){" this code.
We have face problem we implement some slider and also we have wrighten many script in phtml.
If we add the jquery library then magento is giving the error in core files and all script are stopped accept my cutome script once i remove the the jquery library
then core script are working but my custom script are not working its giving jquery not define you can see error below screenshots.
In magento 2 probubly have permission issues with server. if you are not able to set production mode by CLI command you can follow below changes.
open your magento 2 root dirctory, Open file "/app/etc/evn.php" and search "'MAGE_MODE' =>". you can change your mgento mode here manually.
CLI command for production mode
magento deploy:mode:set production
CLI command for developer mode
magento deploy:mode:set developer
Display the current mode
User below commnad for make sure which mode currently are nunning.
Command
php bin/magento deploy:mode:show
As I said in the title, I want to remove precision from price ( .00 )
I did these :
I changed
to
I changed
to
to
to
Then I cleared the cache, and reindexed Magento (which is i
version1.9), But the precision didn't remove, Am I missing something?
what should I do? |
If you want to know. your Magento 2 website is running on which environment you can run below command on terminal and very easily you can kn...