LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
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 10-10-2013, 10:34 PM   #1
linuxrndblog
Member
 
Registered: Oct 2010
Location: India
Posts: 89

Rep: Reputation: 2
CDbConnection failed to open the DB connection


Hello,

Im getting below error.

Connection failed to open the DB connection: SQLSTATE[28000] [1045] Access denied for user 'root'@'localhost' (using password: NO)

/home/xyz/public_html/yii/framework/db/CDbConnection.php(382)


Main.php file details:-

db'=>array(
'connectionString' => 'mysql:host=127.0.0.1;port=3306;dbname=xyz_pqr',
'emulatePrepare' => true,
'username' => 'root',
'
password' => '',
'charset' => 'utf8',

Software details:-

CentOS release 6.3 (Final)
Apache/2.2.23
PHP 5.3.21
mysql 5.1.66
VPS on virtuozzo with cpanel.

Please guide/suggest me on the same.

Thanks,
Imran.
 
  


Reply



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
Bind9: NDC command failed : rndc: connect failed: connection refused Boudewijn Linux - Networking 19 01-02-2014 07:19 AM
vsftpd not working: Connection attempt failed with "ECONNREFUSED - Connection refused davidlu766 Linux - Server 7 05-03-2010 08:34 PM
ssh -D "channel 6: open failed: administratively prohibited: open failed" 1veedo Linux - Networking 1 06-24-2009 09:23 PM
(WW) fglrx(0): Failed to open DRM connection - 2.6.27.8 nebloof Slackware 18 12-11-2008 06:49 PM
online_update failed - ERROR(Media:connection failed)[Connect failed] rover SUSE / openSUSE 8 02-22-2005 07:57 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 10:56 AM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration