Error Establishing Database Connection
-
Hi!
I have been developing a site on localhost for my local library. I’m working with a team so I signed up for free hosting through infinityfree so I could share with them to get input etc. I’m having trouble getting things up and running though. Imported my database from a localhost export. Everything seemed just fine. Uploaded a copy of my localhost site files using FileZilla FTP. Everything transferred fine.But when I load my site I get “error establishing database connection”. I poked around in the forums on infinityfree, got some help there. Added “true” to debug in config.php. The db username and password, host etc is all correct in config as well. But I am now getting this message:
Warning: mysqli_real_connect(): (HY000/1045): Access denied for user 'epiz_27666533'@'192.168.2.192' (using password: YES) in /home/vol9_5/epizy.com/epiz_27666533/htdocs/wp-includes/wp-db.php on line 1635 Deprecated: mysql_connect(): The mysql extension is deprecated and will be removed in the future: use mysqli or PDO instead in /home/vol9_5/epizy.com/epiz_27666533/htdocs/wp-includes/wp-db.php on line 1667 Warning: mysql_connect(): Access denied for user 'epiz_27666533'@'192.168.2.192' (using password: YES) in /home/vol9_5/epizy.com/epiz_27666533/htdocs/wp-includes/wp-db.php on line 1667 Access denied for user 'epiz_27666533'@'192.168.2.192' (using password: YES) Error establishing a database connection This either means that the username and password information in your wp-config.php file is incorrect or we can’t contact the database server at sql210.epizy.com. This could mean your host’s database server is down. Are you sure you have the correct username and password? Are you sure you have typed the correct hostname? Are you sure the database server is running? If you’re unsure what these terms mean you should probably contact your host. If you still need help you can always visit the WordPress Support Forums.
I checked the code on the lines specified, but I don’t know what it’s supposed to look like, so I don’t know what needs to be fixed. I am a newbie, sorry if this is something simple. Please help!
line 1635 from wp-db.php:
if ( WP_DEBUG ) { mysqli_real_connect( $this->dbh, $host, $this->dbuser, $this->dbpassword, null, $port, $socket, $client_flags ); line 1667: $this->dbh = mysql_connect( $this->dbhost, $this->dbuser, $this->dbpassword, $new_link, $client_flags );
Thanks!
Amy- This topic was modified 4 years, 2 months ago by .
- This topic was modified 4 years, 2 months ago by . Reason: please use CODE button for code formatting
The page I need help with: [log in to see the link]
- The topic ‘Error Establishing Database Connection’ is closed to new replies.