Web Design and Development Forums

[SOLVED] PHP Myadmin problem

This is a discussion on "[SOLVED] PHP Myadmin problem" within the Apache and IIS section. This forum, and the thread "[SOLVED] PHP Myadmin problem are both part of the Hosting Related category.


Go Back   Webforumz.com > Hosting Related > Apache and IIS

Welcome to Webforumz.com.
Register Now Register now!

Reply
 
LinkBack Thread Tools Rate Thread
Old Nov 6th, 2007, 20:53   #1 (permalink)
Reputable Member
 
Join Date: Oct 2007
Location: Liverpool
Age: 29
Posts: 193
[SOLVED] PHP Myadmin problem

I recently installed XAMPP and i created a sql file database, imported it into PHP myadmin, and everythink went fine until i tried to go back into phpmyadmin, and i keep getting the following errors,

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.


Could someone please tell me were config.inc.php can befound??
longstand is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Old Nov 6th, 2007, 21:10   #2 (permalink)
 
Join Date: Apr 2007
Location: Scotland, UK
Age: 15
Posts: 1,749
Send a message via MSN to Marc Send a message via Skype™ to Marc
Re: PHP Myadmin problem

It should be in this directory: C:\xampp\phpMyAdmin\config.inc.php.

Hope this helps!
__________________
I'm back!!!!
Marc is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Old Nov 6th, 2007, 21:14   #3 (permalink)
Reputable Member
 
Join Date: Oct 2007
Location: Liverpool
Age: 29
Posts: 193
Re: PHP Myadmin problem

It is were u said it would be but when i open the file the top line says,

/* !!! DO NOT EDIT THIS FILE, EDIT config.inc.php INSTEAD !!! */


So am confused
longstand is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Old Nov 6th, 2007, 21:23   #4 (permalink)
 
Join Date: Apr 2007
Location: Scotland, UK
Age: 15
Posts: 1,749
Send a message via MSN to Marc Send a message via Skype™ to Marc
Re: PHP Myadmin problem

That must be an error, that's the file you are in!
__________________
I'm back!!!!
Marc is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Old Nov 6th, 2007, 21:58   #5 (permalink)
Reputable Member
 
Join Date: Oct 2007
Location: Liverpool
Age: 29
Posts: 193
Re: PHP Myadmin problem

Ok i have reinstalled XAMMP and it allowed me back into phpmyadmin, but the second time i tries to get back in i got this error again:

phpMyAdmin tried to connect to the MySQL server, and the server rejected the connection. You should check the host, username and password in your configuration and make sure that they correspond to the information given by the administrator of the MySQL server.
Error

MySQL said:
#1045 - Access denied for user 'root'@'localhost' (using password: YES)

How exactly do i solve this problem
longstand is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Old Nov 7th, 2007, 16:21   #6 (permalink)
 
Join Date: Apr 2007
Location: Scotland, UK
Age: 15
Posts: 1,749
Send a message via MSN to Marc Send a message via Skype™ to Marc
Re: PHP Myadmin problem

Is this your own PHP page? Are you trying to connect to the databse?

If you are, can i see your PHP connection data?

Cheers,
__________________
I'm back!!!!
Marc is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Old Nov 7th, 2007, 17:22   #7 (permalink)
Reputable Member
 
Join Date: Oct 2007
Location: Liverpool
Age: 29
Posts: 193
Re: PHP Myadmin problem

Hello Marc! How r u today?

Yer am trying to connect to my database that i have written myself and saved as a sql file called dbwikid, i open XAMMP control panel and load phpmyadmin, i also browsed to my sql file mentioned above and opened it using phpmyadmin and all queries came back ok, i then open dreamweaver and try to connect to the database, i use the setting below:

dbwikid

localhost

root

longstand

and then select my database, which is there but if u select it i get a messege explaining eye have password problems of some sort. Then after this i try to go back into phpmyadmin and i am barred out of the program, i the messege displayed in my last messege is displayed. Its a pain in the backside 2 b honest...

any suggestions...
longstand is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Old Nov 7th, 2007, 17:35   #8 (permalink)
 
Join Date: Apr 2007
Location: Scotland, UK
Age: 15
Posts: 1,749
Send a message via MSN to Marc Send a message via Skype™ to Marc
Re: PHP Myadmin problem

Quote:
dbwikid

localhost

root

longstand
What are they, passwords, db names.. What?
__________________
I'm back!!!!
Marc is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Old Nov 7th, 2007, 17:44   #9 (permalink)
 
Join Date: Jun 2007
Location: uk
Posts: 459
Re: PHP Myadmin problem

ive had something similar.

the workaround is to open apache admin through the control panel, click on the security link (third link down i think),scroll down and click on
http://localhost/security/xamppsecurity.php

then set your password for your database.

this shoul get you in but you will be prompted for your password everytime you open up phpmyadmin.
Hope this helps.
dab42pat is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Old Nov 7th, 2007, 20:32   #10 (permalink)
Reputable Member
 
Join Date: Oct 2007
Location: Liverpool
Age: 29
Posts: 193
Re: PHP Myadmin problem

Ok guys av loved me problem myself!!!

Here is the solution to the pesky Phpmyadmin homepage error!!

Below is the error:

Error
MySQL said:

#1045 - Access denied for user: 'root@localhost' (Using password: NO)

Below is the solution to fix the problem:


First, replace this line :

$cfg['PmaAbsoluteUri'] = '';

to the line typed below:

$cfg['PmaAbsoluteUri'] = 'localhost/phpmyadmin/';


This is to make disappear one of the error messages on phpmyadmin's homepage.

Now you just need to add your new password :

open config.inc.php and enter the same password you chosen when creating your privlegis in the phpmyadmin privleges page. The code below is located in the phpmyadmin folder and you enter your password were i have typed webforumz

$cfg['Servers'][$i]['user'] = 'root'; // MySQL user
$cfg['Servers'][$i]['password'] = 'webforumz'; // MySQL password (only needed with 'config' auth_type)

Save your file and it's done...

You can now use this user with its new password in your php scripts.

Cheers
longstand is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Old Nov 7th, 2007, 20:35   #11 (permalink)
 
Join Date: Jun 2007
Location: uk
Posts: 459
Re: [SOLVED] PHP Myadmin problem

thanks for posting the solution.
dab42pat is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Old Nov 7th, 2007, 20:38   #12 (permalink)
Reputable Member
 
Join Date: Oct 2007
Location: Liverpool
Age: 29
Posts: 193
Re: [SOLVED] PHP Myadmin problem

No probs am just gutted i typed "loved" instead of "solved" in the top part of my solution!!! DONT TYPE WHEN YER DRINKING BEER (its wrong i say)

Av added some rep for you both

Take it easy.
longstand is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] 1 solved problem causes another delusion CSS Forum 9 Dec 21st, 2007 08:12
[SOLVED] FF problem nashultz07 CSS Forum 3 Nov 28th, 2007 03:49
[SOLVED] div positioning problem danny322 CSS Forum 5 Nov 28th, 2007 01:05
Auto populating MyAdmin fields by using php John Brettoner PHP Forum 2 Apr 9th, 2006 00:28
PHP MyAdmin help please charter PHP Forum 10 May 14th, 2004 21:25



Latest Updates

All Points SEO Security Advisory - CHECK YOUR SITE NOW!

Creative Coding :: February 2008

Webforumz is sponsored by: WESH UK Web Hosting
All times are GMT. The time now is 07:02.

Sleep Study Scoring :: Free Bet :: Website Templates :: Online Betting :: Bookmakers :: Funny Quotes :: Internet Recruitment Software :: Microsoft CRM Experts :: Online Casino :: Decorated Christmas Trees :: Midwife Forums :: Football Betting :: Ecommerce Software :: Web Hosting :: Football Stats :: Dry Cleaning Collection :: xtreme wales - extreme clothing :: Apuestas :: Sharepoint Consultants :: Website Optimisation :: Office Clearance London :: Sharepoint Experts :: Sports Betting :: Casino :: Website Templates :: Web Design Development India :: Online Gambling

Powered by: vBulletin Version 3.7, Copyright ©2000 - 2008, Jelsoft Enterprises Limited.
© 2003-2008 Webforumz.com : All Rights Reserved
Search Engine Friendly URLs by vBSEO 3.2.0 RC6


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59