Re: unable to connect to database in MediaWiki 1.27.4 installation
- Date: Sun, 08 Jul 2018 19:31:13 +0100
- From: mick crane <mick.crane@xxxxxxxxx>
- Subject: Re: unable to connect to database in MediaWiki 1.27.4 installation
On 2018-07-08 19:03, mick crane wrote:
On 2018-07-08 17:53, Sharon Kimble wrote:
mick crane <mick.crane@xxxxxxxxx> writes:
On 2018-07-08 08:53, Sharon Kimble wrote:
I'm unable to get mediawiki from the repos working as it is
failing at accessing the database as part of its configuration at
beginning. I say 'consistently' as the same problem has occurred
trying to install mediawiki from source, and this is a clean fresh
install so I think that it must be something in my /home because it
completely new fresh install. But what?
Can anyone give me some guidance here please, as I've been looking
/home for anything 'mariadb' or 'mysql'-like but without any
When I input my database details into
error message saying -
│DB connection error: Access denied for user 'root'@'localhost'
│Check the host, username and password and try again.
To my thinking, its obviously comparing what I'm inputting into
something, and deciding that they don't match, so therefore giving
error message. But what is it comparing to?
I don't know what error you get if mysqld is not running but best see
if it is
"ps ax | grep mysql"
Thanks for replying Mick.
This is what I get using a slightly better command than yours (you
missed out the 'u' in aux :)
a u x are options
│$ ps aux | grep mysql
│mysql 962 0.0 0.0 698580 65656 ? Ssl Jul07 0:59
Which is about right as I rebooted yesterday.
And I've just checked and I'm still not able to get past the 'Connect
database' page in the mediawiki setup process.
I dunno what you've done or what mediawiki setup does, I think I might
have installed it once for curiosity.
I know little about mediawiki what I would do is look about for handy
mysql commands so you can see what is what.
believe you can logon from system root to the root mysql account
without a password and have a look what users and databases there are
I'd probably do that and delete any mediawiki database and mediawiki
users, create new ones with passwords I write down and input that to
the mediawiki setup.
What I'm uncertain about is changing the mysql root password if I
might have told other things what it is.
thinking a bit about it
any setup program probably only wants to know the mysql root password to
create the users and database
and once its done that it doesn't need it anymore so you could probably
go ahead and change the mysql password to something you will remember.
I'm sure if given bad advice will be told off.
Key ID 4BFEBB31