Find the answer to your Linux question:
Results 1 to 3 of 3
Hi All I'm getting this error when I try to view mysite/phpmyadmin: phpMyAdmin - Error Cannot load mysql extension. Please check your PHP configuration documentation. The documentation says this: "[1.20] ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Linux User stokes's Avatar
    Join Date
    Oct 2004
    Location
    UK
    Posts
    274

    Problems installing phpmyadmin


    Hi All

    I'm getting this error when I try to view mysite/phpmyadmin:

    phpMyAdmin - Error
    Cannot load mysql extension. Please check your PHP configuration documentation.

    The documentation says this:

    "[1.20] I receive the error "cannot load MySQL extension, please check PHP Configuration".
    To connect to a MySQL server, PHP needs a set of MySQL functions called "MySQL extension". This extension may be part of the PHP distribution (compiled-in), otherwise it needs to be loaded dynamically. Its name is probably mysql.so or php_mysql.dll. phpMyAdmin tried to load the extension but failed. "

    I'm using Slackware 10.2, and I installed both MySQL and PHP from packages from LinuxPackages.net.

    Any ideas?
    Registered Linux user #389109
    My Semi-Linux Blog

  2. #2
    Just Joined!
    Join Date
    Jan 2006
    Posts
    6
    when you compile php, enable --with-mysql option

  3. #3
    Linux User stokes's Avatar
    Join Date
    Oct 2004
    Location
    UK
    Posts
    274
    Here is my phpinfo:

    http://mail.ukstokes.com/test.php

    The configure statement shows it was configured with the --with-mysql option, byt MySQL does not appear in the PHP Info!! Is there something wrong in this statement?

    Code:
     	 './configure' '--prefix=/usr' '--disable-static' \
     '--with-apxs=/usr/sbin/apxs' '--sysconfdir=/etc' \
    '--enable-discard-path' '--with-config-file-path=/etc/apache' \
    '--enable-safe-mode' '--with-openssl' \
    '--with-mhash' '--enable-bcmath' '--with-bz2' \
    '--with-pic' '--enable-calendar' '--enable-ctype' \
    '--with-gdbm' '--with-db3' \
    '--with-imap-ssl=/usr/local/lib/c-client' \
    '--with-imap=/usr/local/lib/c-client' '--enable-dbase' \
    '--enable-ftp' '--with-iconv' '--with-dom' '--with-exif' \
    '--enable-exif' '--with-gd' '--enable-gd-native-ttf' \
    '--with-jpeg-dir=/usr' '--with-png' '--with-gmp' \
    '--enable-mbstring' '--with-curl=/usr' \
    '--with-pcre-regex=/usr' '--with-mysql=shared,/usr'\
     '--with-gettext=shared,/usr' '--with-expat-dir=/usr' \
    '--with-xml' '--enable-wddx' '--with-mm=/usr' \
    '--enable-trans-sid' '--enable-shmop' '--enable-sockets' \
    '--with-regex=php' '--enable-sysvsem' \
    '--enable-sysvshm' '--enable-yp' '--enable-memory-limit' \
    '--with-tsrm-pthreads' '--enable-shared' '--disable-debug' \
    '--with-zlib=/usr'
    Registered Linux user #389109
    My Semi-Linux Blog

  4. $spacer_open
    $spacer_close

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •