Thread: MySQL Error
View Single Post
  #1  
Old 13th February 2011, 23:06
Nolan Nolan is offline
Member
 
Join Date: Nov 2010
Posts: 81
Thanks: 2
Thanked 5 Times in 4 Posts
Default MySQL Error

Hi, I had to reinstall my OS because of a failed upgrade to Debian 6.

I'm back on Debian 5 again, and I just dragged the contents of my old database folder (/var/lib/mysql) into the new database folder, and I changed the root password back to what it was on the old server. However, I'm getting this error:


Code:
Warning: mysql_connect() [function.mysql-connect]: Access denied for user 'ispconfig'@'localhost' (using password: YES) in /usr/local/ispconfig/interface/lib/classes/db_mysql.inc.php on line 72
Here is line 72:
PHP Code:
$this->linkId mysql_connect($this->dbHost$this->dbUser$this->dbPass); 
Here is the information line 72 calls for:
PHP Code:
private $dbHost '';           // hostname of the MySQL server
    
private $dbName '';           // logical database name on that server
    
private $dbUser '';           // database authorized user
    
private $dbPass '';           // user's password
    
private $dbCharset '';       // what charset comes and goes to mysql: utf8 / latin1
    
private $linkId 0;           // last result of mysql_connect()
    
private $queryId 0;           // last result of mysql_query()
    
private $record    = array();       // last record fetched
    
private $autoCommit 1;        // Autocommit Transactions
    
private $currentRow;           // current row number
    
private $errorNumber 0;       // last error number
    
public $errorMessage '';       // last error message
    
private $errorLocation '';   // last error location
    
public $show_error_messages false
I'm not sure if the code is supposed to be ' ' or not, I haven't ever looked on a regular installation.
I tried filling in my database information in those fields but it still didn't work.

Last edited by Nolan; 14th February 2011 at 02:21. Reason: Forgot to provide database info.
Reply With Quote
Sponsored Links