Return-Path: Received: by yocto-www.yoctoproject.org (Postfix, from userid 118) id 58144E0093B; Fri, 16 Mar 2018 08:58:46 -0700 (PDT) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on yocto-www.yoctoproject.org X-Spam-Level: X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00,HTML_MESSAGE, RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 X-Spam-HAM-Report: * -2.3 RCVD_IN_DNSWL_MED RBL: Sender listed at http://www.dnswl.org/, * medium trust * [64.235.150.235 listed in list.dnswl.org] * -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% * [score: 0.0000] * 0.0 HTML_MESSAGE BODY: HTML included in message Received: from 14pmail.ess.barracuda.com (14pmail.ess.barracuda.com [64.235.150.235]) by yocto-www.yoctoproject.org (Postfix) with ESMTP id C9850E00848 for ; Fri, 16 Mar 2018 08:58:44 -0700 (PDT) Received: from SFAMAIL.SAKURAUS.LOCAL (mail.sakuraus.com [12.26.104.5]) by mx27.ess.sfj.cudaops.com (version=TLSv1.2 cipher=AES256-SHA256 bits=256 verify=NO); Fri, 16 Mar 2018 15:58:41 +0000 Received: from SFAMAIL.SAKURAUS.LOCAL (10.16.3.8) by SFAMAIL.SAKURAUS.LOCAL (10.16.3.8) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.669.32; Fri, 16 Mar 2018 08:58:40 -0700 Received: from SFAMAIL.SAKURAUS.LOCAL ([::1]) by SFAMAIL.SAKURAUS.LOCAL ([::1]) with mapi id 15.01.0669.032; Fri, 16 Mar 2018 08:58:40 -0700 From: Greg Wilson-Lindberg To: Khem Raj Thread-Topic: [yocto] How to get mysqy/mariadb to start on powerup. Thread-Index: AQHTvJmRjybrgAvccUyN6MZA1cayV6PSO8aA//+OKnaAATjiEA== Date: Fri, 16 Mar 2018 15:58:40 +0000 Message-ID: References: <454710ed7f6d42279136acc70c35cf74@sakuraus.com>, <937e0a406a4443b0813052bcc5c0a006@sakuraus.com> In-Reply-To: <937e0a406a4443b0813052bcc5c0a006@sakuraus.com> Accept-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.16.5.3] MIME-Version: 1.0 X-BESS-ID: 1521215921-637137-5848-41552-1 X-BESS-VER: 2018.3-r1803090017 X-BESS-Apparent-Source-IP: 12.26.104.5 X-BESS-Outbound-Spam-Score: 0.00 X-BESS-Outbound-Spam-Report: Code version 3.2, rules version 3.2.2.191121 Rule breakdown below pts rule name description ---- ---------------------- -------------------------------- 0.00 HTML_MESSAGE BODY: HTML included in message 0.00 BSF_BESS_OUTBOUND META: BESS Outbound X-BESS-Outbound-Spam-Status: SCORE=0.00 using account:ESS29408 scores of KILL_LEVEL=7.0 tests=HTML_MESSAGE, BSF_BESS_OUTBOUND X-BESS-BRTS-Status: 1 Cc: "yocto@yoctoproject.org" Subject: Re: How to get mysqy/mariadb to start on powerup. X-BeenThere: yocto@yoctoproject.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: Discussion of all things Yocto Project List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 16 Mar 2018 15:58:46 -0000 Content-Language: en-US Content-Type: multipart/alternative; boundary="_000_e323d1d04c544a93a562c54ebdf23fdesakurauscom_" --_000_e323d1d04c544a93a562c54ebdf23fdesakurauscom_ Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable > From: Greg Wilson-Lindberg > Sent: Thursday, March 15, 2018 02:16 PM > To: Khem Raj > Cc: yocto@yoctoproject.org > Subject: Re: [yocto] How to get mysqy/mariadb to start on powerup. > > > From: Khem Raj > > > Sent: Thursday, March 15, 2018 1:54 PM > > To: Greg Wilson-Lindberg > > Cc: yocto@yoctoproject.org > > Subject: Re: [yocto] How to get mysqy/mariadb to start on powerup. > > > > > On Thu, Mar 15, 2018 at 1:38 PM, Greg Wilson-Lindberg > > > wrote: > > > I'm building an RPi3 system that is going to use mysql/mariadb. I've = got > > > everything installed, but mysqld is not starting. install_db.service = does > > > run on startup, but the mysqld.service file never gets triggered. > > > > > > > > > Is there something that I'm missing to get it to run? I've search onl= ine, > > > but can't find anything that pertains to yocto. > > > > > > > poke on the system with systemctl/journalctl to see whats going on > > journalctl -u mysqld.service says no entries > systemctl status mysqld.service shows: > Loaded: loaded (/lib/systemd/system/mysqld.service; disabled; vendor p= reset: enabled) > Active: inactive (dead) > > I've rebooted the system a couple of times to see if install_db needed to= be run before mysql would run, no luck. > It's seems that maybe I need to add a bit about my understanding of the yoc= to system. I was assuming that if I included mysql in the build, that it wo= uld be started when the system powered up. If mysql is not normally started= automatically that I can do what is necessary to start it, I just thought = that I shouldn't need to do anything. Greg --_000_e323d1d04c544a93a562c54ebdf23fdesakurauscom_ Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable

> From: Greg Wilson-Lindberg
> Sent: Thursday, March 15, 2018 02:16 PM
> To: Khem Raj <raj.khem@gmail.com>
> Cc: yocto@yoctoproject.org
> Subject: Re: [yocto] How to get mysqy/mariadb to start on power= up.

> <= /p>

> > From: Khem Raj= <raj.khem@gmail.com>

> > Sent: Thursday= , March 15, 2018 1:54 PM
> > To: Greg Wilso= n-Lindberg
> > Cc: yocto@yoctoproject.org
> > Subject: Re: [= yocto] How to get mysqy/mariadb to start on powerup.

> >  

> > > On Thu, Mar 15, 2018 at 1:38 PM, Gr= eg Wilson-Lindberg
> > <GWilson@sakuraus.com> wrote:
> > > I'm building an RPi3 system that is goin= g to use mysql/mariadb. I've got
> > > everything installed, but mysqld is not = starting. install_db.service does
> > > run on startup, but the mysqld.service f= ile never gets triggered.
> > >
> > >
> > > Is there something that I'm missing to g= et it to run? I've search online,
> > > but can't find anything that pertains to= yocto.
> > >
> >
> > poke on the system with systemctl/journalctl = to see whats going on

>

> journalctl -u mysqld.service says no entries=

> systemctl status mysqld.service shows:<= /span>

>    Loaded: loaded (/lib/systemd/system/mysqld= .service; disabled; vendor preset: enabled)

>    Active: inactive (dead)<= /p>

>

> I've rebooted the system a couple of times to see if in= stall_db needed to be run before mysql would run, no luck.

> 

It's seems that maybe I need to add a bit= about my understanding of the yocto system. I was assuming that if I inclu= ded mysql in the build, that it would be started when the system powered up. If mysql is not normally started automatically= that I can do what is necessary to start it, I just thought that I shouldn= 't need to do anything.

 

Greg

--_000_e323d1d04c544a93a562c54ebdf23fdesakurauscom_--