I am facing some problem when I am trying to import magento database on localhost. It just import 18 table but in actual it contain 383 approx table. It gives error given be
You can change php.ini as other answers have mentioned. It can be ok on you localhost. But on webserver with more virtualhost you probably don't want to increase memory limit for all hosts (that's what directive in php.ini does).
To increse memory limit only for given virtualhost edit virtualhost settings. For example:
#your virtualhost settings
php_value memory_limit 64M #place any number you need
Or, you can place the same php_value into your .htaccess file, but your virtualhost must allow to change this values.