About

Information is always Worth to save ...

Sunday, January 18, 2009

changes on mysql and php

When I installed php and mysql.
I wanted to run drupal through it..So i came through some hurdles...
The notes for that ..
1.mysql -u root -p
-->gave the password (*****4*)
Now created a database named drupal and gave complete access to the user

2.mysql>create database drupal;

3.mysql> GRANT ALL PRIVILEGES ON *.* TO 'sree'@'localhost' IDENTIFIED BY '*****4**' WITH GRANT OPTION;
So Now I should be able to Install drupal on my desktop...
but came with one more problem related to the PHP

"Fatal error
: Allowed memory size of 16777216 bytes exhausted (tried to allocate 117327 bytes) in /drupal/drupal-6.9/includes/cache.inc on line 105"

So to fix this we need to change the php files with drupal

i.e
1.vim drupal/sites/default/settings.php
added the ini_set('memory_limit', '16M');
and am not sure abt adding below line but i added it.
php_value memory_limit 16M
in your .htaccess file in the Drupal root folder

-sree

No comments: