MySQL Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
User Name:
Password:
Remember me
 
Go Back   Dev Articles Community ForumsDatabasesMySQL Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Display Modes
 
Unread Dev Articles Community Forums Sponsor:
  #1  
Old November 15th, 2003, 11:56 AM
izzyg izzyg is offline
Junior Member
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Nov 2003
Posts: 2 izzyg User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Talking mysql connection error

Hi

when I try to use phpmyadmin through my browser I get the following error message;

'Welcome to phpMyAdmin 2.5.4

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.

Error

MySQL said:


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



I configuered the config.in.php with using 'localhost' as the HOST, 'root' as USER and 'my_password' as PASSWORD.

I tried changing host and user to specify those in my mysql.ini but this still didn't work, I just go a slightly differerent error saying;

#1130 - Host 'host_name' is not allowed to connect to this MySQL server.

Also when I try to create a database through the mysql monitor using the 'create database dbname;'
command I get;

Error 1044: Access denied for user: '@locahost'


I think I must have something configured incorrectly, any ideas what it could be?

Thanks

Izzy

Reply With Quote
  #2  
Old May 11th, 2004, 03:12 AM
anhcuty anhcuty is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: May 2004
Posts: 1 anhcuty User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
answer to it

Man database is a big problem.. but i think you can try this.. go to you config.inc.php and then make these changes
$cfg['Servers'][$i]['auth_type'] = 'config'; // Authentication method (config, http or cookie based)?
$cfg['Servers'][$i]['user'] = 'root'; // MySQL user
$cfg['Servers'][$i]['password'] = ''; //remember leave it '' dont type in anything inside

copy that replace the old one.. and it will work..

Reply With Quote
Reply

Viewing: Dev Articles Community ForumsDatabasesMySQL Development > mysql connection error


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 5 hosted by Hostway