473,385 Members | 1,752 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

MySQL refuses connection from phpMyAdmin

I cannot access phpMyAdmin it comes up with this....


Welcome to phpMyAdmin 2.10.1

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: NO)


How do I fix this problem (plz note im new so try to be as less complicated with the answer)
Sep 8 '07 #1
4 2463
Atli
5,058 Expert 4TB
Hi Shadow. Welcome to The Scripts!

You have posted your question in the Articles section rather than the Forum section.
I have moved it across for you.

Also, I've changed the title of this thread to better describe it's topic.
Using good, descriptive titles that follow the Posting Guidelines will increase your chances of getting you questions answered!

Moderator
Sep 9 '07 #2
Atli
5,058 Expert 4TB
This means that MySQL rejected the user information phpMyAdmin used to connect to it.

You will have to insert the correct information. The info should be put inside the config.inc file in the directory phpMyAdmin is located, like the error says.
Sep 9 '07 #3
Sorry as i said I am new and I still dont get it I found config.inc but how do i edit it? And what do I change?


All your help very much appreicated.

=]
Sep 9 '07 #4
Atli
5,058 Expert 4TB
You need to open the file using notepad, or something similar.
Then you need to locate this line:
Expand|Select|Wrap|Line Numbers
  1. $cfg['Servers'][$i]['auth_type'] = 'config';
  2.  
You can set this to 'http', in which case it asks you for your MySQL user information every time you open phpMyAdmin.

You can also set this to 'config'. This is more convenient because phpMyAdmin will never ask you for you user info if this is set correctly. Although, if you do this anybody can use phpMyAdmin without entering any user info.

To set this you need to put the MySQL user information into the file.
That would look something like this:
Expand|Select|Wrap|Line Numbers
  1. $cfg['Servers'][$i]['user'] = 'phpmyadminuser';
  2. $cfg['Servers'][$i]['password'] = 'the_password';
  3.  
If these lines don't exists, you can create them.
Sep 9 '07 #5

Sign in to post your reply or Sign up for a free account.

Similar topics

0
by: Lenny D | last post by:
If anybody has any experience SF.net's mySQL server, your help would be greatly appreciated. When I try to connect to the DB install Movable Type (http://www.movabletype.org/) I get the following...
0
by: M.L.Srinivas | last post by:
hi, This is my first task with MySQL. We have a site with php as front end MySql as back end. The remote database is on Linux. Now my task is to update some data to MySql database (on the web...
0
by: prasanna | last post by:
Hello to all I am using myodbc 3.51 driver to connect mysql through asp.net but getting error "login failed for user <computer name>\aspnet" . I can connect to mysql with the same connection...
0
by: Atif | last post by:
Hi All My problem is not related with this group BUT i have got a clue from here that's why i am posting this question over here. I am using Crystal Reports 9 with MySQL and SQL Server....
2
by: Locu | last post by:
I notice with PHP if a connection cannot be established to a mysql server with mysql_connect() PHP will timeout and never try the backup server. In this example: $db =...
10
by: nephish | last post by:
hey there, i have a huge app that connects to MySQL. There are three threads that are continually connecting and disconnecting to the db. The problem is, if there is an error, it faults out...
0
by: mistral | last post by:
What is best selection for 'collation' parameter - for those, who need use two languages, latin(english) and cyrillic(russian) on website and need that mySQL handled and stored both languages...
1
by: Astlik | last post by:
Hi, I was using phpmyadmin when, by mistake I deleted some rows from a table I didn't wanted to. I would like to know if anyone could help me recovering those records I deleted. I don't have any...
2
by: deepaks85 | last post by:
Dear Friends, Is it necessary to have mysql database on the same hosting? If no, then why can't I connect to my database? I am trying to connect a mysql database which on www.online.biz and my...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.