Connecting Tech Pros Worldwide Forums | Help | Site Map

PHPMYADMIN error

maliksleo's Avatar
Member
 
Join Date: Feb 2009
Location: Islamabad, Pakistan
Posts: 115
#1: Mar 13 '09
i have wamp 2.0 server installed. When i clicked on phpmyadmin i have the following error can any body fix it.

"Cannot load mysqli extension. Please check your PHP configuration. - Documentation"

Atli's Avatar
Moderator
 
Join Date: Nov 2006
Location: Iceland
Posts: 3,748
#2: Mar 17 '09

re: PHPMYADMIN error


Hi.

This means that your PHP installation is missing the mysqli extension.

Having never used WAMP myself, I can not say if it has some sort of GUI to handle this sort of thing for you, but you may want to look into that.

You can also simply configure this yourself.
  1. Go into your PHP installation directory. Make sure the "php_mysqli.dll" file exists in the "ext" sub-directory.
    If it does not, go to the PHP download page, download the ZIP package and move the .dll file over to your PHP install path.
  2. Add the PHP installation dir to the path variable:
    - Right-click My Computer, select properties.
    - Select the "Advanced" tab.
    - Click "Environmental Variables"
    - Select the PATH entry from the list. If it doesn't exists, create it.
    - Add the path to your PHP installation to the pre-existing text.

    It should looks something like:
    [whatever was here to begin with];C:\\php\;

    Note! Do NOT delete what is there already, or you may cause all sorts of problems.
  3. Open the "php.ini" configuration file you are using. If you are not sure where that is located, create a .php file that calls the phpinfo function and locate the location in the first section of the output from that.
  4. Set the "extension_dir" directive in the "php.ini" file to an absolute path. Meaning, something like "C:\\php\ext\", obviously altering this path to the actual location on your hard-drive.
    Note that having already set the PATH variable, this is not strictly necessary, but it can't hurt.
  5. Add or un-comment the line "extension=php_mysqli.dll" in the "php.ini" file.
  6. Reboot the computer.
Once that is done, the MySQLI extension should load properly.
maliksleo's Avatar
Member
 
Join Date: Feb 2009
Location: Islamabad, Pakistan
Posts: 115
#3: Mar 20 '09

re: PHPMYADMIN error


thanks for your help Atli
i got apache2tried which is running qute well

now i dont need WAMP server any more

once again thanks
Reply

Tags
error, phpmyadmin