LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 07-18-2005, 12:03 AM   #1
curos
Member
 
Registered: Aug 2003
Distribution: Slackware
Posts: 72

Rep: Reputation: 15
phpmyadmin #2002 error


I am attempting to install phpmyadmin, but when I try to open it up, I receive the error
Quote:
#2002 - The server is not responding (or the local MySQL server's socket is not correctly configured)
I'm not sure how to proceed.

Here are some stats if it helps.
Slackware 10.1
Apache 2.054
php 4.40
mysql 4.1.11

Some key lines from the phpMyAdmin config.inc.php file
Code:
$cfg['Servers'][$i]['host']          = 'localhost'; // MySQL hostname or IP address
$cfg['Servers'][$i]['port']          = '';          // MySQL port - leave blank for default port
$cfg['Servers'][$i]['socket']        = '';          // Path to the socket - leave blank for default socket
$cfg['Servers'][$i]['connect_type']  = 'socket';       // How to connect to MySQL server ('tcp' or 'socket')
$cfg['Servers'][$i]['extension']     = 'mysql';     // The php MySQL extension to use ('mysql' or 'mysqli')


I checked to see if mysql was running with
Code:
ps xa | grep mysqld
And it was according to this ouput:
Code:
  822 ?        S      0:00 /bin/sh /usr/bin/mysqld_safe --datadir=/var/lib/mysql --pid-file=/var/run/mysql/mysql.pid
  851 ?        S      0:00 /usr/libexec/mysqld --basedir=/usr --datadir=/var/lib/mysql --user=mysql --pid-file=/var/run/mysql/mysql.pid --skip-locking --port=3306 --socket=/var/run/mysql/mysql.sock
  852 ?        S      0:00 /usr/libexec/mysqld --basedir=/usr --datadir=/var/lib/mysql --user=mysql --pid-file=/var/run/mysql/mysql.pid --skip-locking --port=3306 --socket=/var/run/mysql/mysql.sock
  853 ?        S      0:00 /usr/libexec/mysqld --basedir=/usr --datadir=/var/lib/mysql --user=mysql --pid-file=/var/run/mysql/mysql.pid --skip-locking --port=3306 --socket=/var/run/mysql/mysql.sock
  854 ?        S      0:00 /usr/libexec/mysqld --basedir=/usr --datadir=/var/lib/mysql --user=mysql --pid-file=/var/run/mysql/mysql.pid --skip-locking --port=3306 --socket=/var/run/mysql/mysql.sock
  855 ?        S      0:00 /usr/libexec/mysqld --basedir=/usr --datadir=/var/lib/mysql --user=mysql --pid-file=/var/run/mysql/mysql.pid --skip-locking --port=3306 --socket=/var/run/mysql/mysql.sock
  856 ?        S      0:00 /usr/libexec/mysqld --basedir=/usr --datadir=/var/lib/mysql --user=mysql --pid-file=/var/run/mysql/mysql.pid --skip-locking --port=3306 --socket=/var/run/mysql/mysql.sock
  858 ?        S      0:00 /usr/libexec/mysqld --basedir=/usr --datadir=/var/lib/mysql --user=mysql --pid-file=/var/run/mysql/mysql.pid --skip-locking --port=3306 --socket=/var/run/mysql/mysql.sock
  859 ?        S      0:00 /usr/libexec/mysqld --basedir=/usr --datadir=/var/lib/mysql --user=mysql --pid-file=/var/run/mysql/mysql.pid --skip-locking --port=3306 --socket=/var/run/mysql/mysql.sock
  860 ?        S      0:00 /usr/libexec/mysqld --basedir=/usr --datadir=/var/lib/mysql --user=mysql --pid-file=/var/run/mysql/mysql.pid --skip-locking --port=3306 --socket=/var/run/mysql/mysql.sock
  861 ?        S      0:00 /usr/libexec/mysqld --basedir=/usr --datadir=/var/lib/mysql --user=mysql --pid-file=/var/run/mysql/mysql.pid --skip-locking --port=3306 --socket=/var/run/mysql/mysql.sock
Background: I installed AMP from the instructions provided by xushi with the exception that I installed php4 instead of php5. When it came to the instructions to edit php.ini:

Quote:
uncomment the line ;extension=mysql.so by removing the ';'
============

code:

Code:
extension=mysql.so
I just added the line 'extension=mysql.so' since there was no line to comment out.
 
Old 07-18-2005, 12:09 AM   #2
gbonvehi
Senior Member
 
Registered: Jun 2004
Location: Argentina (SR, LP)
Distribution: Slackware
Posts: 3,145

Rep: Reputation: 53
Try setting: $cfg['Servers'][$i]['socket'] = '/var/run/mysql/mysql.sock';

or $cfg['Servers'][$i]['connect_type'] = 'tcp';
(try this if the socket doesn't work).
 
Old 07-18-2005, 01:11 AM   #3
curos
Member
 
Registered: Aug 2003
Distribution: Slackware
Posts: 72

Original Poster
Rep: Reputation: 15
works but...

it works! but now I've hit another snag.

The page now pops up with
Quote:
phpMyAdmin tried to connect to the MySQL server, and the server rejected the connection. You should check the host, username and password in config.inc.php and make sure that they correspond to the information given by the administrator of the MySQL server.
and the error
Quote:
#1251 - Client does not support authentication protocol requested by server; consider upgrading MySQL client
And after googling a bit on the error, it seems that this shouldn't be happening since I have a current mysql version: 4.1.11

But maybe, I'm wrong, the instructions over at the mysql website http://dev.mysql.com/doc/mysql/en/old-client.html say that I can run the command
Code:
mysql> SET PASSWORD FOR
    -> 'some_user'@'some_host' = OLD_PASSWORD('newpwd');
and my question is, where and how do i run those commands if I need to at all?
 
Old 07-18-2005, 01:55 AM   #4
davidsrsb
Member
 
Registered: Oct 2003
Location: Kuala Lumpur, Malaysia
Distribution: Slackware 13.37 current
Posts: 770

Rep: Reputation: 33
The old_password conversion is needed for some mysql based applications that use php 4 to access a mysql 4.1 database as the php4 mysql connector uses the mysql 4.0 api. PHP 5 works ok, but is not backwards compatible
 
Old 07-18-2005, 02:23 AM   #5
gbonvehi
Senior Member
 
Registered: Jun 2004
Location: Argentina (SR, LP)
Distribution: Slackware
Posts: 3,145

Rep: Reputation: 53
Re: works but...

Quote:
Originally posted by curos
But maybe, I'm wrong, the instructions over at the mysql website http://dev.mysql.com/doc/mysql/en/old-client.html say that I can run the command
Code:
mysql> SET PASSWORD FOR
    -> 'some_user'@'some_host' = OLD_PASSWORD('newpwd');
and my question is, where and how do i run those commands if I need to at all?
You've to run that using the mysql client. Connect your your server using: mysql
and run the command on it.

Edit: By the way, here's a step by step how to get it working: http://forums.mysql.com/read.php?11,...0611#msg-10611

Last edited by gbonvehi; 07-18-2005 at 02:34 AM.
 
Old 07-18-2005, 02:33 AM   #6
curos
Member
 
Registered: Aug 2003
Distribution: Slackware
Posts: 72

Original Poster
Rep: Reputation: 15
Talking Cool

Oh, so it's php4 that needs the old_password conversion. gbonvehi, I've run the command and everythings working.

Thank you everyone!!!
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
error using phpMyAdmin funkyche Linux - Newbie 1 01-12-2005 03:55 PM
FPSE 2002 install error on redhat 9 semesm Linux - Software 1 05-18-2004 12:16 AM
error with phpmyadmin phil81 Linux - Software 1 12-28-2003 09:43 AM
I am getting an Error 2002 when installing Mysql blanderson Linux - Newbie 0 10-16-2003 12:11 PM
error 2002, loging into MySQL. please help meluser Linux - Software 13 03-16-2003 09:57 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 10:23 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration