Ask Your Question
0

How do I run MediaWiki on Fedora?

asked 2015-06-14 14:50:23 -0500

updated 2015-06-14 14:55:39 -0500

I would like to run MediaWiki 1.25.1 on Fedora, so I installed it by running sudo dnf install mediawiki, which ran successfully but I am having great difficulty configuring MySQL. See whenever I run mysqladmin -u root password <mypassword> I get this error:

mysqladmin: connect to server at 'localhost' failed
error: 'Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2 "No such file or directory")'
Check that mysqld is running and that the socket: '/var/lib/mysql/mysql.sock' exists!

I checked to see whether this socket exists and it doesn't. So how do I fix this? Please do not just give me a link to the online mysql documentation as your answer, as I don't understand a word there. I would just like a nice, simple answer. Like you could give me a line of code to execute at the command line.

If relevant I am running on 32 bit F22.

edit retag flag offensive close merge delete

1 Answer

Sort by » oldest newest most voted
1

answered 2015-06-14 15:55:12 -0500

Rabin gravatar image

updated 2015-06-14 15:56:59 -0500

Make sure that the MySQL service is running, (in my case i'm using MariaDB instead of MySQL)

# systemctl status mariadb.service 
● mariadb.service - MariaDB 10.0 database server
   Loaded: loaded (/usr/lib/systemd/system/mariadb.service; disabled; vendor preset: disabled)
   Active: inactive (dead)


# systemctl start mariadb.service 
# systemctl status mariadb.service 
● mariadb.service - MariaDB 10.0 database server
   Loaded: loaded (/usr/lib/systemd/system/mariadb.service; disabled; vendor preset: disabled)
   Active: active (running) since Sun 2015-06-14 23:53:18 IDT; 1s ago
  Process: 17792 ExecStartPost=/usr/libexec/mysql-check-upgrade (code=exited, status=0/SUCCESS)
  Process: 17667 ExecStartPost=/usr/libexec/mysql-wait-ready $MAINPID (code=exited, status=0/SUCCESS)
  Process: 17618 ExecStartPre=/usr/libexec/mysql-prepare-db-dir %n (code=exited, status=0/SUCCESS)
  Process: 17585 ExecStartPre=/usr/libexec/mysql-check-socket (code=exited, status=0/SUCCESS)
 Main PID: 17666 (mysqld_safe)
   CGroup: /system.slice/mariadb.service
           ├─17666 /bin/sh /usr/bin/mysqld_safe --basedir=/usr
           └─17762 /usr/libexec/mysqld --basedir=/usr --datadir=/var/lib/mysql --plugin-dir=/usr/lib64/mysql/plugin --log-error=/var/lib/mysql/e.err --pid-file=e.pid
edit flag offensive delete link more

Question Tools

1 follower

Stats

Asked: 2015-06-14 14:50:23 -0500

Seen: 643 times

Last updated: Jun 14 '15