Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 27 May 2023 22:17:14 -0400
From:      Paul Procacci <pprocacci@gmail.com>
To:        Aryeh Friedman <aryeh.friedman@gmail.com>
Cc:        Odhiambo Washington <odhiambo@gmail.com>,  FreeBSD Mailing List <freebsd-questions@freebsd.org>
Subject:   Re: What happened to my /tmp/mysql.sock ?!!??!
Message-ID:  <CAFbbPuh9vHaUyxznq4gqdPQQDdyhTprS54Yu=P6rwFX0f7crdQ@mail.gmail.com>
In-Reply-To: <CAGBxaXn9spaKrBxJ5Pq7LjFeotjAy0ZVZ3=N3jyQZAMcVKbPkw@mail.gmail.com>
References:  <CAGBxaXkGMdp7sev9=UnE1sMQA9ni6-sBKfdE78-T28VPM2Hd%2BA@mail.gmail.com> <CAAdA2WNY9MH1fFrfF=25%2BquxeUvLR1B71QpUo9v-fyi4egv25g@mail.gmail.com> <CAGBxaXmKoYJS-giea7v5F39hZ5G06XnhMuQA0YNARQHJ4md=gw@mail.gmail.com> <CAAdA2WO7VNPLwqX06a-eoSpqxROezysy-vDT7zKcW1QYkM1xPw@mail.gmail.com> <CAGBxaXnDVHZ0%2BUS3j0deDXOEVQFznMV7GNHi6jaD%2B6RVws4uYg@mail.gmail.com> <CAAdA2WNLUEG8CYSkNXLZ8Re=F2sJyqGooD3mqBf8fDo%2By-sGug@mail.gmail.com> <CAGBxaX=UV=dXKO=qn7=KS=dip3rUG3=LT=qVRu2eKg%2BTsckaRA@mail.gmail.com> <CAFbbPugb3YkqXWsPGR%2B_2F1eHA_vwcKKz6=Fy5fgDhUjo0P%2B-A@mail.gmail.com> <CAGBxaXn9spaKrBxJ5Pq7LjFeotjAy0ZVZ3=N3jyQZAMcVKbPkw@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
--00000000000035b1c605fcb79231
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

On Sat, May 27, 2023 at 8:14=E2=80=AFPM Aryeh Friedman <aryeh.friedman@gmai=
l.com>
wrote:

> On Sat, May 27, 2023 at 1:21=E2=80=AFPM Paul Procacci <pprocacci@gmail.co=
m> wrote:
> >
> >
> >
> > On Sat, May 27, 2023 at 1:13=E2=80=AFPM Aryeh Friedman <aryeh.friedman@=
gmail.com>
> wrote:
> >>
> >> On Sat, May 27, 2023 at 1:09=E2=80=AFPM Odhiambo Washington <odhiambo@=
gmail.com>
> wrote:
> >> > 2023-05-27T12:40:12.835631Z 0 [ERROR] Fatal error: Can't open and
> lock privilege tables: Table 'mysql.user' doesn't exist
> >> > 2023-05-27T12:40:12.835637Z 0 [ERROR] Fatal error: Failed to
> initialize ACL/grant/time zones structures or failed to remove temporary
> table files.
> >> > 2023-05-27T12:40:12.835752Z 0 [ERROR] Aborting
> >> > </quote>
> >> >
> >> > Please completely uninstall Mysql and reinstall afresh and it will
> start.
> >>
> >> This *IS* a completely new install !?!?!?  Literally installed 5 mins
> >> before I posted on a complete fresh VM
> >> >
> >> > Even better, install MariaDB :-)
> >>
> >> Since I need to debug a mysql DB on a production server not an option
> >> --
> >> Aryeh M. Friedman, Lead Developer, http://www.PetiteCloud.org
> >>
> >
> > I didn't catch the version of mysql you were attempting to run but one
> of two commands will solve your problem.
> > The first is potentially mysql_install_db.
> >
> > It's possible this command doesn't exist due to it being part of mysqld
> in later versions of mysql.  If that's the case then the following should
> initialize the databases.
> >
> > mysqld --initialize
> Already tried both this seems to be related to a series of bugs all up
> and down the mysql food chain in the last few weeks:
> https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D270807
>
>
> >
> > Once one of the two are completed, then you can try the things that Mr.
> Washington was suggesting and repost an new error messages.
> >
> > ~Paul
> >
> > --
> > __________________
> >
> > :(){ :|:& };:
>
>
>
> --
> Aryeh M. Friedman, Lead Developer, http://www.PetiteCloud.org
>

Some things excluded from the OPS original post (or I had to search for
referenced in the provided logs)
The mysql version is 5.7.41.
He's using latest.  Not quarterly.

Series of commands that I've done to create an mysql 5.7.41 environment:
zfs send tank/jails/templates/13.1-RELEASE-stripped@initial | zfs recv
tank/jails/hosts/mysql-test
zfs set mountpoint=3D/jails/hosts/mysql-test tank/jails/hosts/mysql-test
pkg -r /jails/hosts/mysql-test install -y mysql57-server-5.7.41
/etc/rc.d/jail onestart mysql-test

*To follow along the jail id that got created has a numeric identifier of
17.
>From there:

jexec -u root 17 /usr/local/etc/rc.d/mysql-server onestart
# pgrep -j 17 -l mysqld
58398 mysqld

I cannot replicate the OPs problem.

Note the installation from the port:

"=3D=3D=3D>   NOTICE:

This port is deprecated; you may wish to reconsider installing it:"

~Paul
--=20
__________________

:(){ :|:& };:

--00000000000035b1c605fcb79231
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr"><div><div><div><div dir=3D"ltr"><br></div><br><div class=
=3D"gmail_quote"><div dir=3D"ltr" class=3D"gmail_attr">On Sat, May 27, 2023=
 at 8:14=E2=80=AFPM Aryeh Friedman &lt;<a href=3D"mailto:aryeh.friedman@gma=
il.com" target=3D"_blank">aryeh.friedman@gmail.com</a>&gt; wrote:<br></div>=
<blockquote class=3D"gmail_quote" style=3D"margin:0px 0px 0px 0.8ex;border-=
left:1px solid rgb(204,204,204);padding-left:1ex">On Sat, May 27, 2023 at 1=
:21=E2=80=AFPM Paul Procacci &lt;<a href=3D"mailto:pprocacci@gmail.com" tar=
get=3D"_blank">pprocacci@gmail.com</a>&gt; wrote:<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; On Sat, May 27, 2023 at 1:13=E2=80=AFPM Aryeh Friedman &lt;<a href=3D"=
mailto:aryeh.friedman@gmail.com" target=3D"_blank">aryeh.friedman@gmail.com=
</a>&gt; wrote:<br>
&gt;&gt;<br>
&gt;&gt; On Sat, May 27, 2023 at 1:09=E2=80=AFPM Odhiambo Washington &lt;<a=
 href=3D"mailto:odhiambo@gmail.com" target=3D"_blank">odhiambo@gmail.com</a=
>&gt; wrote:<br>
&gt;&gt; &gt; 2023-05-27T12:40:12.835631Z 0 [ERROR] Fatal error: Can&#39;t =
open and lock privilege tables: Table &#39;mysql.user&#39; doesn&#39;t exis=
t<br>
&gt;&gt; &gt; 2023-05-27T12:40:12.835637Z 0 [ERROR] Fatal error: Failed to =
initialize ACL/grant/time zones structures or failed to remove temporary ta=
ble files.<br>
&gt;&gt; &gt; 2023-05-27T12:40:12.835752Z 0 [ERROR] Aborting<br>
&gt;&gt; &gt; &lt;/quote&gt;<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; Please completely uninstall Mysql and reinstall afresh and it=
 will start.<br>
&gt;&gt;<br>
&gt;&gt; This *IS* a completely new install !?!?!?=C2=A0 Literally installe=
d 5 mins<br>
&gt;&gt; before I posted on a complete fresh VM<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; Even better, install MariaDB :-)<br>
&gt;&gt;<br>
&gt;&gt; Since I need to debug a mysql DB on a production server not an opt=
ion<br>
&gt;&gt; --<br>
&gt;&gt; Aryeh M. Friedman, Lead Developer, <a href=3D"http://www.PetiteClo=
ud.org" rel=3D"noreferrer" target=3D"_blank">http://www.PetiteCloud.org</a>=
<br>
&gt;&gt;<br>
&gt;<br>
&gt; I didn&#39;t catch the version of mysql you were attempting to run but=
 one of two commands will solve your problem.<br>
&gt; The first is potentially mysql_install_db.<br>
&gt;<br>
&gt; It&#39;s possible this command doesn&#39;t exist due to it being part =
of mysqld in later versions of mysql.=C2=A0 If that&#39;s the case then the=
 following should initialize the databases.<br>
&gt;<br>
&gt; mysqld --initialize<br>
Already tried both this seems to be related to a series of bugs all up<br>
and down the mysql food chain in the last few weeks:<br>
<a href=3D"https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D270807" rel=
=3D"noreferrer" target=3D"_blank">https://bugs.freebsd.org/bugzilla/show_bu=
g.cgi?id=3D270807</a><br>
<br>
<br>
&gt;<br>
&gt; Once one of the two are completed, then you can try the things that Mr=
. Washington was suggesting and repost an new error messages.<br>
&gt;<br>
&gt; ~Paul<br>
&gt;<br>
&gt; --<br>
&gt; __________________<br>
&gt;<br>
&gt; :(){ :|:&amp; };:<br>
<br>
<br>
<br>
-- <br>
Aryeh M. Friedman, Lead Developer, <a href=3D"http://www.PetiteCloud.org" r=
el=3D"noreferrer" target=3D"_blank">http://www.PetiteCloud.org</a><br>;
</blockquote></div><br clear=3D"all"></div>Some things excluded from the OP=
S original post (or I had to search for referenced in the provided logs)<br=
></div>The mysql version is 5.7.41.<br></div>He&#39;s using latest.=C2=A0 N=
ot quarterly.<br><div><div><div><br>Series of commands that I&#39;ve done t=
o create an mysql 5.7.41 environment:<br>zfs send tank/jails/templates/13.1=
-RELEASE-stripped@initial | zfs recv tank/jails/hosts/mysql-test<br>zfs set=
 mountpoint=3D/jails/hosts/mysql-test tank/jails/hosts/mysql-test<br>pkg -r=
 /jails/hosts/mysql-test install -y mysql57-server-5.7.41<br>/etc/rc.d/jail=
 onestart mysql-test<br><br></div><div>*To follow along the jail id that go=
t created has a numeric identifier of 17.<br></div><div>From there:<br><br>=
</div><div>jexec -u root 17 /usr/local/etc/rc.d/mysql-server onestart<br># =
pgrep -j 17 -l mysqld<br>58398 mysqld<br><br></div><div>I cannot replicate =
the OPs problem.<br><br></div><div>Note the installation from the port:</di=
v><div><br></div><div>&quot;=3D=3D=3D&gt; =C2=A0 NOTICE:<br><br>This port i=
s deprecated; you may wish to reconsider installing it:&quot;<br><br></div>=
<div>~Paul<br></div><div><span class=3D"gmail_signature_prefix">-- </span><=
br><div dir=3D"ltr" class=3D"gmail_signature">__________________<br><br>:()=
{ :|:&amp; };:</div></div></div></div></div>

--00000000000035b1c605fcb79231--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAFbbPuh9vHaUyxznq4gqdPQQDdyhTprS54Yu=P6rwFX0f7crdQ>