Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.php > #4519 > unrolled thread

error from phpadmin

Started byJohn <John@agdp.de>
First post2012-01-19 14:04 +0100
Last post2012-01-19 05:13 -0800
Articles 7 — 4 participants

Back to article view | Back to comp.lang.php


Contents

  error from  phpadmin John <John@agdp.de> - 2012-01-19 14:04 +0100
    Re: error from  phpadmin Andre <pasMois@ailleur.be> - 2012-01-19 14:15 +0100
    Re: error from  phpadmin Erwin Moller <erwinmollerusenet@xs4all.nl> - 2012-01-19 14:17 +0100
      Re: error from  phpadmin John <John@agdp.de> - 2012-01-20 14:31 +0100
        Re: error from phpadmin Captain Paralytic <paul_lautman@yahoo.com> - 2012-01-20 05:36 -0800
        Re: error from  phpadmin Erwin Moller <erwinmollerusenet@xs4all.nl> - 2012-01-20 16:24 +0100
    Re: error from phpadmin Captain Paralytic <paul_lautman@yahoo.com> - 2012-01-19 05:13 -0800

#4519 — error from phpadmin

FromJohn <John@agdp.de>
Date2012-01-19 14:04 +0100
Subjecterror from phpadmin
Message-ID<jf94cf$kkr$1@nnrp.linuxfan.it>
Hello everybody,

I'm new here and I hope to find some help.

I'm using XAMPP and so far without problems.

Now I'm trying to create via a small php utility, a database and tables.
Apparently all went well, according to a message which I echoed on the 
screen.

However, when I start phpadmin, just to double check that everything 
really went OK, I get the following error message :

#2002 - The server is not responding (or the local MySQL server's socket 
is not correctly configured)


Looking up in internet I found an answer to a similar question, so I 
added the following line :

$cfg['Servers'][$i]['socket'] = '';


to the file config.inc.php .

Still doesnt work. I get the same error.

What could have gone wrong in the whole process ?

Thanks for any hints.





[toc] | [next] | [standalone]


#4520

FromAndre <pasMois@ailleur.be>
Date2012-01-19 14:15 +0100
Message-ID<4f181756$0$5055$ba620e4c@news.skynet.be>
In reply to#4519
Le 19/01/2012 14:04, John a écrit :
> Hello everybody,
>
> I'm new here and I hope to find some help.
>
> I'm using XAMPP and so far without problems.
>
> Now I'm trying to create via a small php utility, a database and tables.
> Apparently all went well, according to a message which I echoed on the
> screen.
>
> However, when I start phpadmin, just to double check that everything
> really went OK, I get the following error message :
>
> #2002 - The server is not responding (or the local MySQL server's socket
> is not correctly configured)
>
>
> Looking up in internet I found an answer to a similar question, so I
> added the following line :
>
> $cfg['Servers'][$i]['socket'] = '';
>
>
> to the file config.inc.php .
>
> Still doesnt work. I get the same error.
>
> What could have gone wrong in the whole process ?
>
> Thanks for any hints.
>
>
>
>
>
>
This is my config.ini.php
$i++;
$cfg['Servers'][$i]['verbose'] = '';
$cfg['Servers'][$i]['host'] = 'homepc';
$cfg['Servers'][$i]['port'] = '';
$cfg['Servers'][$i]['socket'] = '';
$cfg['Servers'][$i]['connect_type'] = 'socket';
$cfg['Servers'][$i]['extension'] = 'mysqli';
$cfg['Servers'][$i]['auth_type'] = 'http';
$cfg['Servers'][$i]['user'] = 'root';
$cfg['Servers'][$i]['password'] = '';


hoppe it help.
André

[toc] | [prev] | [next] | [standalone]


#4521

FromErwin Moller <erwinmollerusenet@xs4all.nl>
Date2012-01-19 14:17 +0100
Message-ID<4f1817fc$0$6881$e4fe514c@news2.news.xs4all.nl>
In reply to#4519
On 1/19/2012 2:04 PM, John wrote:
> Hello everybody,
>
> I'm new here and I hope to find some help.
>
> I'm using XAMPP and so far without problems.
>
> Now I'm trying to create via a small php utility, a database and tables.
> Apparently all went well, according to a message which I echoed on the
> screen.
>
> However, when I start phpadmin, just to double check that everything
> really went OK, I get the following error message :
>
> #2002 - The server is not responding (or the local MySQL server's socket
> is not correctly configured)
>
>
> Looking up in internet I found an answer to a similar question, so I
> added the following line :
>
> $cfg['Servers'][$i]['socket'] = '';
>
>
> to the file config.inc.php .
>
> Still doesnt work. I get the same error.
>
> What could have gone wrong in the whole process ?
>
> Thanks for any hints.
>
>

Hi,

See my answer to cerr, in this very group, just 2 days ago.
The thread is named "phpmyadmin config problems".

Erwin Moller

-- 
"That which can be asserted without evidence, can be dismissed without 
evidence."
-- Christopher Hitchens

[toc] | [prev] | [next] | [standalone]


#4544

FromJohn <John@agdp.de>
Date2012-01-20 14:31 +0100
Message-ID<jfbqau$9cg$1@nnrp.linuxfan.it>
In reply to#4521
Am 19.01.2012 14:17, schrieb Erwin Moller:

>
> See my answer to cerr, in this very group, just 2 days ago.
> The thread is named "phpmyadmin config problems".
>

thanks to Erwin, André and Captain. I have tried all suggested 
variations, without success.  I have even re-installed the whole XAMPP.
There must be something odd in my code which provokes the error, and 
still couldnt find the cause.

It's a simple test (I am a scratch beginner with php+MySQL) and I just 
wanted to see if I can  create a database, just create it without 
tables. And then check with phpadmin if it has bee created successfully.

My php code is :

<?php
require('config.php');
$conn = mysql_connect(SQL_HOST, SQL_USER, SQL_PASS)
   or die('Could not connect to MySQL database. ' . mysql_error());

mysql_select_db(SQL_DB,$conn);
$sql1 =
   "CREATE DATABASE IF NOT EXISTS normative_db";
mysql_query($sql1) or die(mysql_error());
?>

and config.php is as follows :

<?php
define  ("SQL_HOST","localhost");
define  ("SQL_USER","root");
define  ("SQL_DB","normative_db");
define  ("SQL_PASS", "ciccio");
?>

A rather mysterious thing happens : as soon as I run the above code, 
after that I cant access the MySQL any more.
It comes with errors like 'connect error', telling me to check all the 
parameters, or it gives the error which I reported on my first post.
I have tried all the variations suggested in here. Nothng helps.

I have re-installed XAMPP already twice.

If I dare run the code, from that moment, NOTHING seem to work any more.

Out of desperation I am now trying to understand deeper the httd.conf 
from Apache and the my.ini files of MySQL.

But its  big waste of time and I wonder how much it will take before I 
solve the problem and if it is all worth it.

But i HAVE to do my task with a database on the network, there's no way out.

Anybody has the faintest idea of what I am doing wrong ?

Is it so terrible to create a database without tables, and then check 
that everything is OK by running phpadmin ?


Thanks again for all hints.

John.

[toc] | [prev] | [next] | [standalone]


#4548 — Re: error from phpadmin

FromCaptain Paralytic <paul_lautman@yahoo.com>
Date2012-01-20 05:36 -0800
SubjectRe: error from phpadmin
Message-ID<f76b4484-d30a-4570-b2a1-9154d71b49c7@f1g2000yqi.googlegroups.com>
In reply to#4544
On Jan 20, 1:31 pm, John <J...@agdp.de> wrote:
> Am 19.01.2012 14:17, schrieb Erwin Moller:
>
>
>
> > See my answer to cerr, in this very group, just 2 days ago.
> > The thread is named "phpmyadmin config problems".
>
> thanks to Erwin, Andr and Captain. I have tried all suggested
> variations, without success.  I have even re-installed the whole XAMPP.

I don't know about XAMPP but WAMPserver installs with a working copy
of PMA.

[toc] | [prev] | [next] | [standalone]


#4549

FromErwin Moller <erwinmollerusenet@xs4all.nl>
Date2012-01-20 16:24 +0100
Message-ID<4f198728$0$6921$e4fe514c@news2.news.xs4all.nl>
In reply to#4544
On 1/20/2012 2:31 PM, John wrote:
> Am 19.01.2012 14:17, schrieb Erwin Moller:
>
>>
>> See my answer to cerr, in this very group, just 2 days ago.
>> The thread is named "phpmyadmin config problems".
>>
>
> thanks to Erwin, André and Captain. I have tried all suggested
> variations, without success. I have even re-installed the whole XAMPP.
> There must be something odd in my code which provokes the error, and
> still couldnt find the cause.
>
> It's a simple test (I am a scratch beginner with php+MySQL) and I just
> wanted to see if I can create a database, just create it without tables.
> And then check with phpadmin if it has bee created successfully.
>
> My php code is :
>
> <?php
> require('config.php');
> $conn = mysql_connect(SQL_HOST, SQL_USER, SQL_PASS)
> or die('Could not connect to MySQL database. ' . mysql_error());
>
> mysql_select_db(SQL_DB,$conn);
> $sql1 =
> "CREATE DATABASE IF NOT EXISTS normative_db";
> mysql_query($sql1) or die(mysql_error());
> ?>
>
> and config.php is as follows :
>
> <?php
> define ("SQL_HOST","localhost");
> define ("SQL_USER","root");
> define ("SQL_DB","normative_db");
> define ("SQL_PASS", "ciccio");
> ?>
>
> A rather mysterious thing happens : as soon as I run the above code,
> after that I cant access the MySQL any more.
> It comes with errors like 'connect error', telling me to check all the
> parameters, or it gives the error which I reported on my first post.
> I have tried all the variations suggested in here. Nothng helps.
>
> I have re-installed XAMPP already twice.
>
> If I dare run the code, from that moment, NOTHING seem to work any more.
>
> Out of desperation I am now trying to understand deeper the httd.conf
> from Apache and the my.ini files of MySQL.
>
> But its big waste of time and I wonder how much it will take before I
> solve the problem and if it is all worth it.
>
> But i HAVE to do my task with a database on the network, there's no way
> out.
>
> Anybody has the faintest idea of what I am doing wrong ?
>
> Is it so terrible to create a database without tables, and then check
> that everything is OK by running phpadmin ?
>
>
> Thanks again for all hints.
>
> John.


Hi John,

I strongly advise you to ask in the forum of mysql:
http://forums.mysql.com/
We are PHP folk, not mysql folk.

This is a common problem, so read up there a little first, I am sure 
many people asked the same question.

Good luck.
Regards,
Erwin Moller

-- 
"That which can be asserted without evidence, can be dismissed without 
evidence."
-- Christopher Hitchens

[toc] | [prev] | [next] | [standalone]


#4522 — Re: error from phpadmin

FromCaptain Paralytic <paul_lautman@yahoo.com>
Date2012-01-19 05:13 -0800
SubjectRe: error from phpadmin
Message-ID<fc93747c-0426-4c7d-8584-58b012547504@f11g2000yql.googlegroups.com>
In reply to#4519
On Jan 19, 1:04 pm, John <J...@agdp.de> wrote:
> Hello everybody,
>
> I'm new here and I hope to find some help.
>
> I'm using XAMPP and so far without problems.
>
> Now I'm trying to create via a small php utility, a database and tables.
> Apparently all went well, according to a message which I echoed on the
> screen.
>
> However, when I start phpadmin, just to double check that everything
> really went OK, I get the following error message :
>
> #2002 - The server is not responding (or the local MySQL server's socket
> is not correctly configured)
>
> Looking up in internet I found an answer to a similar question, so I
> added the following line :
>
> $cfg['Servers'][$i]['socket'] = '';
>
> to the file config.inc.php .
>
> Still doesnt work. I get the same error.
>
> What could have gone wrong in the whole process ?
>
> Thanks for any hints.

See the thread https://groups.google.com/group/comp.lang.php/browse_frm/thread/c6c8b6d1027615ae?hl=en#
also in this group.

[toc] | [prev] | [standalone]


Back to top | Article view | comp.lang.php


csiph-web