On 12/10/18 3:54 PM, Danny Horne via users wrote:
On 10/12/2018 11:48 pm, Rick Stevens wrote:
> On 12/10/18 3:32 PM, Danny Horne via users wrote:
>> On 10/12/2018 11:26 pm, Rick Stevens wrote:
>>>
>>> Keep in mind that you're really running mariadb and the command to
>>> start
>>> it is "systemctl start mariadb" even though the daemon will show up
as
>>> mysqld in a process list.
>>>
>>
>> [root@hawking ~]# systemctl start mariadb
>> Failed to start mariadb.service: Unit mariadb.service not found.
>
> Well, that's interesting. Do you have the mariadb-server RPM installed
> or are you actually running mysqld (from their community download)?
>
I'm running community-mysql-server from the Fedora repo. Very late here
so don't want to mess around switching to MariaDB, do you think that
will cause more problems if I do?
No, no, don't change it. Then "systemctl start mysqld" (or "systemctl
start mysql") should start it (not sure which is appropriate).
The journal does indicate a problem with mysqld.service, however.
There should be a logfile that indicates the problem. Have a look at
the /etc/my.cnf file (or possibly one of the files in /etc/my.cnf.d)
and look for a "log-error" directive. That should indicate where MySQL
is logging errors. Have a look at that file and see if there's anything
obvious.
You didn't mention if you did an SELinux AVC search (you could use the
sealert tool to look). Since you're using the community MySQL and not
MariaDB, there may be a gotcha in the SELinux policy they didn't catch
(it happens). You could also try:
sudo setenforce 0
systemctl start mysql[d]
If mysql starts after the "setenforce 0" (which sets SELinux into
permissive mode), then you have an SELinux policy problem and you'll
need to do the AVC search to find and squash it. I don't recommend you
continue running in permissive mode.
----------------------------------------------------------------------
- Rick Stevens, Systems Engineer, AllDigital ricks(a)alldigital.com -
- AIM/Skype: therps2 ICQ: 226437340 Yahoo: origrps2 -
- -
- Never eat anything larger than your head -
----------------------------------------------------------------------