Error establishing a database connection!
-
Hello. I’m ashamed to admit that I’m also getting this error. I’ve looked over the support and docs and I see that this is a common issue, but I can’t figure it out. I’ve triple-checked that the username and password, database names and host name are correct. We’ve set priviledges for the user. We tried changing the password, but that didn’t work.
I’m trying to set this up for a school, so I’m working with an IT guy and we both are unable to find the issue. They run Apache and RedHat server. My IT guy and I are both able to connect to the database using the command line with the username and password. I’m still getting the error trying to run the install.php.
I’d appreciate any trouble-shooting ideas.
Here’s my wp-config file:
<?php
// ** MySQL settings ** //
define('DB_NAME', 'degreecritical'); // The name of the database
define('DB_USER', 'nyoung'); // Your MySQL username
define('DB_PASSWORD', '*****'); // ...and password
define('DB_HOST', 'localhost'); // 99% chance you won't need to change this value
// You can have multiple installations in one database if you give each a unique prefix
$table_prefix = 'wp_'; // Only numbers, letters, and underscores please!
// Change this to localize WordPress. A corresponding MO file for the
// chosen language must be installed to wp-includes/languages.
// For example, install de.mo to wp-includes/languages and set WPLANG to 'de'
// to enable German language support.
define ('WPLANG', '');
/* That's all, stop editing! Happy blogging. */
define('ABSPATH', dirname(__FILE__).'/');
require_once(ABSPATH.'wp-settings.php');
?>
and some of my database info:
Connection id: 97
Current database: degreecritical
Current user: nyoung@localhost
SSL: Not in use
Current pager: stdout
Using outfile: ''
Using delimiter: ;
Server version: 5.0.27-standard
Protocol version: 10
Connection: Localhost via UNIX socket
Server characterset: latin1
Db characterset: latin1
Client characterset: latin1
Conn. characterset: latin1
UNIX socket: /tmp/mysql.sock
Uptime: 24 days 5 hours 16 min 2 sec
Thanks.
- The topic ‘Error establishing a database connection!’ is closed to new replies.