LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Freshly installed Mysql (mysql-community-server) fails to start (https://www.linuxquestions.org/questions/linux-software-2/freshly-installed-mysql-mysql-community-server-fails-to-start-4175533634/)

cpartsenidis 02-10-2015 02:05 PM

Freshly installed Mysql (mysql-community-server) fails to start
 
Greetings to everyone,

I've installed a CentOS 7 64bit VM and have been trying all day to get Mysql to work, but to no avail, so I'm turn here for some help.

During the installation of CentOS, I selected the 'Minimal install' in the Software Selection.

After the OS installation completed, I following these steps:

1) Yum Update for the whole system

2) sudo yum localinstall mysql-community-release-el7-5.noarch.rpm

3) sudo yum install mysql-community-server

Everything completed without an error, however when trying to start mysqld I received the following:

[root@server ~]# service mysqld start
Redirecting to /bin/systemctl start mysqld.service

and after some time, I receive the following:

Job for mysqld.service failed. See 'systemctl status mysqld.service' and 'journalctl -xn' for details

Here is the output of the journalctl -xn:


Quote:

[root@server ~]# journalctl -xn
-- Logs begin at Mon 2015-02-09 21:50:33 CET, end at Mon 2015-02-09 22:58:44 CET
Feb 09 22:57:26 server.host.com systemd[1]: Stopped MySQL Community Serve
-- Subject: Unit mysqld.service has finished shutting down
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman.../systemd-devel
--
-- Unit mysqld.service has finished shutting down.
Feb 09 22:57:30 server.host.com systemd[1]: Starting MySQL Community Serv
-- Subject: Unit mysqld.service has begun with start-up
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman.../systemd-devel
--
-- Unit mysqld.service has begun starting up.
Feb 09 22:57:30 server.host.com mysqld_safe[16820]: 150209 22:57:30 mysql
Feb 09 22:57:30 server.host.com mysqld_safe[16820]: 150209 22:57:30 mysql
Feb 09 22:57:31 server.host.com mysqld_safe[16820]: 150209 22:57:31 mysql
Feb 09 22:58:44 server.host.com sshd[17167]: Accepted password for root f
Feb 09 22:58:44 server.host.com systemd[1]: Starting Session 4 of user ro
-- Subject: Unit session-4.scope has begun with start-up
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman.../systemd-devel
--
-- Unit session-4.scope has begun starting up.
Feb 09 22:58:44 server.host.com systemd[1]: Started Session 4 of user roo
-- Subject: Unit session-4.scope has finished start-up
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman.../systemd-devel
--
-- Unit session-4.scope has finished starting up.
--
-- The start-up result is done.
Feb 09 22:58:44 server.host.com systemd-logind[830]: New session 4 of use
-- Subject: A new session 4 has been created for user root
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman.../systemd-devel
-- Documentation: http://www.freedesktop.org/wiki/Soft...temd/multiseat
--
-- A new session with the ID 4 has been created for the user root.
--
-- The leading process of the session is 17167.
Feb 09 22:58:44 server.host.com sshd[17167]: pam_unix(sshd:session): sess
[root@server ~]#
I'd really appreciate any help as to what might be going wrong and how I can fix this issue.

Many thanks for your help in advanced!

Chris.

j-ray 02-11-2015 02:53 AM

Welcome to LQ cpartsenidis!
What does
systemctl status mysqld.service
give out?

and
ps -e | grep mysql

John VV 02-12-2015 12:41 AM

also have a look at the SELinux error logs
/var/log/SELinux

seeing as the DEFAULT database is Mariea and NOT Oracles Mysql
there might NOT be any se rules in that third party rpm

and just where did you get it from ?
Oracle ???

Maria DB is the replacement for Mysql- built and designed BY the original creator of Mysql BEFORE Oracle bought it


All times are GMT -5. The time now is 09:22 PM.