Dear All,
I run into a problem when trying to upgrade my mediawiki. I am hosted on a mutualised server with provider OVH (www.ovh.com)
When I run the update script (through SSH, located in the maintenance folder), I have the following message:
**********************
titje@ssh1:~/www/maintenance$ /usr/local/bin/php.ORIG.5 update.php --aconf ../AdminSettings.php
X-Powered-By: PHP/5.2.11
Content-type: text/html
MediaWiki 1.15.1 Updater
A connection to the database could not be established. Check the
values of $wgDBadminuser and $wgDBadminpassword.
titje@ssh1:~/www/maintenance$
**********************
The strange thing is that if I run in the same session a mysqldump command with the same user & password for the dB, the script runs without problem.
Does anyone would have a clue on what goes wrong?
I am convinced I use the correct db user & pwd..
Thanks
Thomas
On Wed, Dec 2, 2009 at 9:50 AM, Thomas Quinet tquinet@gmail.com wrote:
I am convinced I use the correct db user & pwd..
Have you actually set $wgDBadminuser and $wgDBadminpassword in
AdminSettings.php (or LocalSettings.php)? These are distinct from $wgDBuser and $wgDBpassword in 1.15.
Yes, I have the $wgDBadminuser and $wgDBadminpassword set up in AdminSettings.php And $wgDBuser and $wgDBpassword in LocalSettings.php
Now, this is where I find it strange... I have only one user for my dB - which I assume is admin. So should these users be different?
???
Thanks
Thomas -----Original Message----- From: mediawiki-l-bounces@lists.wikimedia.org [mailto:mediawiki-l-bounces@lists.wikimedia.org] On Behalf Of Benjamin Lees Sent: mercredi 2 décembre 2009 21:06 To: MediaWiki announcements and site admin list Subject: Re: [Mediawiki-l] Upgrading to Mediawiki 1.15
On Wed, Dec 2, 2009 at 9:50 AM, Thomas Quinet tquinet@gmail.com wrote:
I am convinced I use the correct db user & pwd..
Have you actually set $wgDBadminuser and $wgDBadminpassword in
AdminSettings.php (or LocalSettings.php)? These are distinct from $wgDBuser and $wgDBpassword in 1.15. _______________________________________________ MediaWiki-l mailing list MediaWiki-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-l
On Thu, Dec 3, 2009 at 6:38 AM, Thomas Quinet tquinet@gmail.com wrote:
Yes, I have the $wgDBadminuser and $wgDBadminpassword set up in AdminSettings.php And $wgDBuser and $wgDBpassword in LocalSettings.php
Now, this is where I find it strange... I have only one user for my dB - which I assume is admin. So should these users be different?
???
Thanks
Thomas -----Original Message----- From: mediawiki-l-bounces@lists.wikimedia.org [mailto:mediawiki-l-bounces@lists.wikimedia.org] On Behalf Of Benjamin Lees Sent: mercredi 2 décembre 2009 21:06 To: MediaWiki announcements and site admin list Subject: Re: [Mediawiki-l] Upgrading to Mediawiki 1.15
On Wed, Dec 2, 2009 at 9:50 AM, Thomas Quinet tquinet@gmail.com wrote:
I am convinced I use the correct db user & pwd..
Have you actually set $wgDBadminuser and $wgDBadminpassword in
AdminSettings.php (or LocalSettings.php)? These are distinct from $wgDBuser and $wgDBpassword in 1.15. _______________________________________________ MediaWiki-l mailing list MediaWiki-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-l
MediaWiki-l mailing list MediaWiki-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-l
They can be different, if you don't want your "normal" user to have table create/update/drop rights. In practice, that's the only thing the "admin" user does that the normal user doesn't, and that's normal only during running update.php. So if your normal user has those rights, they can very well be the same value.
-Chad
mediawiki-l@lists.wikimedia.org