Database
# Import SQL file by command line in Windows
syntax:
C:\xampp\mysql\bin\mysql -u {username} -p {databasename} < file_name.sql
Example:
C:\xampp\htdocs\glideline>C:\xampp\mysql\bin\mysql -u root -p glideline_new < "F:\Computer\Website & Theme\Custom Sites\Glideline\glideline (1).sql"
Enter password: Enter
# Apache started but phpmyadmin not opening in ubuntu
First check phpmyadmin installed or not
ls /opt/lampp/phpmyadmin
If folder available (means phpmyadmin installed)
2. Change the port 81 to 80 in conf file:
sudo nano /opt/lampp/etc/httpd.conf
# Resolve SQL File Size Issue
my.ini file in Ubuntu: opt/lampp/etc/my.conf
In windows we can go from the xampp panel directly
Update in php.ini
post_max_size = 40M -> 400M
upload_max_filesize = 40M -> 400M
max_execution_time = 120 -> 1200
memory_limit = 512M -> 5120M
Update in my.ini
max_allowed_packet=1M -> 100M
upload_max_filesize = 40M -> 400M
max_execution_time = 120 -> 1200
memory_limit = 512M -> 5120M
max_allowed_packet=1M -> 100M
0 Comments