Cannot connect using PHP/MySQL version of Menus

Having problems with DHTML Menu? There is usually somebody here who knows the answer.
Post Reply
dmacman
Super Advanced
Super Advanced
Posts: 59
Joined: Wed Sep 21, 2005 3:49 pm

Cannot connect using PHP/MySQL version of Menus

Post by dmacman »

Hi all,

I am trying out for the first time, the PHP version and I configured the mm_config.php file and my file and setup all the user info and paths, and I cannot get the connection to work.

I am sure the login info is correct, and I have permission to access that database, I am the admin and set them myself. Not to mention I have hundreds of php pages using the exact same username and password.

Has anyone run into this yet, and solved it???

Here is the error message ( I changed the response to ensure it is MY file to elimate that possibillity).
Warning: mysql_pconnect(): Access denied for user: 'x@localhost' (Using password: YES) in /home/ideachannel/www/www/test/includes/mm_phpmenu.php on line 250
Couldn't connect to the database server !!!

Arrgghh!!!
Here is the link to the page.

http://www.ideachannel.com/test/mmtest.php

Thanks,

Don
mute
Beginner
Beginner
Posts: 1
Joined: Mon Dec 05, 2005 6:40 pm

Post by mute »

Maybe try substituting the server's hostname or IP address instead of "localhost".
Grout31
Beginner
Beginner
Posts: 8
Joined: Fri Mar 27, 2009 9:34 pm

Re: Cannot connect using PHP/MySQL version of Menus

Post by Grout31 »

did this ever get resolved?

I was so excited about using this application but am left deflated as i cannot get it to work.

Yes i have tried the above suggestion and still recieve the same error.

Please help.....................i have spent a day on this and am ready to delte and try another program if all else fails (which i dont want to do!!!)

Steve
User avatar
Andy
Milonic
Milonic
Posts: 3308
Joined: Sun May 19, 2002 8:23 pm
Location: Menu Developer
Contact:

Re: Cannot connect using PHP/MySQL version of Menus

Post by Andy »

Grout31 wrote:did this ever get resolved?

I was so excited about using this application but am left deflated as i cannot get it to work.

Yes i have tried the above suggestion and still recieve the same error.

Please help.....................i have spent a day on this and am ready to delte and try another program if all else fails (which i dont want to do!!!)

Steve
What's exactly is the problem?

Are there any errors we can see?

-- Andy
Grout31
Beginner
Beginner
Posts: 8
Joined: Fri Mar 27, 2009 9:34 pm

Re: Cannot connect using PHP/MySQL version of Menus

Post by Grout31 »

Andy

Thankyou for you prompt reply.

The error i get is :-

Warning: mysql_pconnect() [function.mysql-pconnect]: Access denied for user 'invicta_steve'@'195.12.48.132' (using password: YES) in /home/invicta/public_html/Grout-systems.com/mm_phpmenu.php on line 242
Couldn't connect to the database server


I get the same message if i use "localhost", i have tried alsorts of combinations but to no avail.

I know the user name, password, and database name are correct as i have tried them on another test script and it connects fine.

Please can you also clarrify which files i require in the root directory, am i being really stupid here?

Steve
User avatar
Andy
Milonic
Milonic
Posts: 3308
Joined: Sun May 19, 2002 8:23 pm
Location: Menu Developer
Contact:

Re: Cannot connect using PHP/MySQL version of Menus

Post by Andy »

Definately looks like a permissions problem.

If you can get me access to the server I'll take a look.

You can email details to andy at milonic and I'll see what I can do
Grout31
Beginner
Beginner
Posts: 8
Joined: Fri Mar 27, 2009 9:34 pm

Re: Cannot connect using PHP/MySQL version of Menus

Post by Grout31 »

Email sent
User avatar
Andy
Milonic
Milonic
Posts: 3308
Joined: Sun May 19, 2002 8:23 pm
Location: Menu Developer
Contact:

Re: Cannot connect using PHP/MySQL version of Menus

Post by Andy »

UPDATE:

This problem was in fact caused by permissions - all that was required was a refresh or flushing of the permission in MySQL.

Everything worked once this had been done.
Post Reply