Results 1 to 5 of 5

Thread: Starting mysql on boot - how?

  1. #1

    Default Starting mysql on boot - how?

    Every time I restart my OpenSUSE 12.1 system I have to manually start mysql. Is there a way to have it started automatically on boot?

    Thanks!

    Scott

  2. #2
    Join Date
    Mar 2010
    Location
    Austin - Texas
    Posts
    10,140
    Blog Entries
    48

    Smile Re: Starting mysql on boot - how?

    Quote Originally Posted by svetter88 View Post
    Every time I restart my OpenSUSE 12.1 system I have to manually start mysql. Is there a way to have it started automatically on boot?

    Thanks!

    Scott
    If you have not already do so, do the following task ...

    open YaST (enter root user password)/ System / System Services (Runlevel)

    Then Set the Expert Mode bullet / Find mysql service in the list on the left / select mysql with mouse / pick the Set/Reset button on bottom right and select Enable the service / pick the Start/Stop/Refresh button on bottom left and select Start now / Select OK on the bottom right.

    Your mysql service should now start automatically on each system restart.

    Thank You,
    My Blog: https://forums.opensuse.org/blogs/jdmcdaniel3/

    Software efficiency halves every 18 months, thus compensating for Moore's Law

    Its James again from Austin, Texas

  3. #3
    Join Date
    Feb 2009
    Location
    Spain
    Posts
    25,547

    Default Re: Starting mysql on boot - how?

    On 2012-05-20 02:26, svetter88 wrote:
    >
    > Every time I restart my OpenSUSE 12.1 system I have to manually start
    > mysql. Is there a way to have it started automatically on boot?


    Same as any other service! :-)

    Traditionally, that would be "chkconfig mysql on". I don't remember if this
    works with systemd.

    --
    Cheers / Saludos,

    Carlos E. R.
    (from 11.4 x86_64 "Celadon" at Telcontar)

  4. #4

    Default Re: Starting mysql on boot - how?

    Quote Originally Posted by robin_listas View Post
    On 2012-05-20 02:26, svetter88 wrote:
    >
    > Every time I restart my OpenSUSE 12.1 system I have to manually start
    > mysql. Is there a way to have it started automatically on boot?


    Same as any other service! :-)

    Traditionally, that would be "chkconfig mysql on". I don't remember if this
    works with systemd.
    It works. mysql is not a native systemd service. You can enable it with:

    Code:
    sudo systemctl enable mysql.service
    But it gets redirected to /sbin/chkconfig and in fact executes

    Code:
    /sbin/chkconfig mysql on

  5. #5

    Default Re: Starting mysql on boot - how?

    Thanks! That did the job. For some reason I thought the starting of subsystems had changed but apparently not.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •