LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices

Reply
 
Search this Thread
Old 04-23-2009, 09:13 PM   #1
nfnitloop
LQ Newbie
 
Registered: Apr 2009
Posts: 1

Rep: Reputation: 0
Unhappy Php cannot connect to mysql, mysql client can


I have a problem with my live server.
Php can't connect to mysql.
I setup a test script and no matter what username and password I enter, I only get this error message:
Access denied for user 'root'@'localhost' (using password: NO)
I've googled far and wide, sorry I am not more informational

I've run mysqlcheck, restored my mysql database, restored my joomla database, reassigned root password, re-granted joomla access and re-written configuration.php
I've reinstalled mysql and php via yum
The only way I can get my joomla site back up is to run mysql with --skip-grant-tables, which is not something I want to do.

Please help me get to the bottom of this!
 
Old 04-24-2009, 01:22 AM   #2
Robhogg
Member
 
Registered: Sep 2004
Location: Old York, North Yorks.
Distribution: Debian 7 (mainly)
Posts: 653

Rep: Reputation: 85
Seems like mysql does not recognise that you are using a password. Could you paste in the mysql_connect statement you are using? (with password replaced by s.t. like 'xxxxxxxxxx')?

Last edited by Robhogg; 04-24-2009 at 01:27 AM.
 
  


Reply

Tags
mysql, mysqld, php


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
can't connect php to mysql on RHEL5.0 in phpinfo page --without mysql is there vinayakbane Linux - Newbie 1 02-14-2009 11:47 PM
is there a client install for MySql so PHP can connect to MySQL Server? alar Linux - Software 8 07-03-2007 07:42 PM
mysql error Can't connect to local MySQL server through socket '/var/lib/mysql/mysql. SpellChainz Linux - Newbie 1 06-23-2007 03:35 PM
mysql error Can't connect to local MySQL server through socket '/var/lib/mysql/mysql. Dannux Linux - Software 3 03-24-2006 08:44 AM


All times are GMT -5. The time now is 03:27 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration