[wp-trac] [WordPress Trac] #3992: 1.x DB Entries in wp-config.php
cause PHP MySQL connection errors in 2.x
WordPress Trac
wp-trac at lists.automattic.com
Sun Mar 18 17:06:19 GMT 2007
#3992: 1.x DB Entries in wp-config.php cause PHP MySQL connection errors in 2.x
-------------------------------+--------------------------------------------
Reporter: bald_technologist | Owner: anonymous
Type: defect | Status: new
Priority: normal | Milestone: 2.3
Component: General | Version:
Severity: normal | Keywords:
-------------------------------+--------------------------------------------
I’ve been running into problems ever since I upgraded WordPress to 2.x
(not sure if it was 2.0 or 2.1) with new posts. The first time a new post
was was loaded into the browser, the server kicked out this error:
PHP Warning: mysql_affected_rows() [<a href='function.mysql-affected-
rows'>function.mysql-affected-rows</a>]: A link to the server could not be
established in /Users/alex/Dev/SilverSpider/site/wp-includes/wp-db.php on
line 183
My old wp-config.php contained some lines that are not included in the 2.x
wp-config-sample.php:
$server = DB_HOST;[[BR]]
$loginsql = DB_USER;[[BR]]
$passsql = DB_PASSWORD;[[BR]]
$base = DB_NAME;[[BR]]
As the upgrade instructions specifically state that one shouldn't delete
wp-config.php, nor do they provide any direction on modifying it
accordingly, this could be a problem on a lot of sites.
--
Ticket URL: <http://trac.wordpress.org/ticket/3992>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list