Installing MariaDB along with MySQL: Could not find mysqldCentOS - Percona MySQL - Not Reading /etc/my.cnfProblems with mysql-libs *after* installing MariaDBServer quit without updating PID file on multiple mysql installation in linuxNo mysqld or mysql.server after mariadb-server installSuddenly mysql/mariadb won't startInstalling MySQL (MariaDB) on Centos7Cant read dir of /etc/my.cnf. (Errcode: 2)Cannot find mysqladmin command below in the wait_for ready() functionMySQL (MariaDB) Not Startingperformance_schema = off mysql running out of memory

What do different value notes on the same line mean?

Do you play the upbeat when beginning to play a series of notes, and then after?

Why colon to denote that a value belongs to a type?

General purpose replacement for enum with FlagsAttribute

Windows 10 Programs start without visual Interface

How can people dance around bonfires on Lag Lo'Omer - it's darchei emori?

What are the benefits of cryosleep?

What is the difference between nullifying your vote and not going to vote at all?

How did early x86 BIOS programmers manage to program full blown TUIs given very few bytes of ROM/EPROM?

If a person had control of every single cell of their body, would they be able to transform into another creature?

Why is desire the root of suffering?

Is this story about US tax office reasonable?

Which noble houses were destroyed during the Game of Thrones?

Rests in pickup measure (anacrusis)

Why doesn't the Earth's acceleration towards the Moon accumulate to push the Earth off its orbit?

Can you heal a summoned creature?

How to plot an unstable attractor?

Employer asking for online access to bank account - Is this a scam?

Why are C64 games inconsistent with which joystick port they use?

Why do Russians call their women expensive ("дорогая")?

Ticket sales for Queen at the Live Aid

Where is the encrypted mask value?

Is there a down side to setting the sampling time of a SAR ADC as long as possible?

Crossing US border with music files I'm legally allowed to possess



Installing MariaDB along with MySQL: Could not find mysqld


CentOS - Percona MySQL - Not Reading /etc/my.cnfProblems with mysql-libs *after* installing MariaDBServer quit without updating PID file on multiple mysql installation in linuxNo mysqld or mysql.server after mariadb-server installSuddenly mysql/mariadb won't startInstalling MySQL (MariaDB) on Centos7Cant read dir of /etc/my.cnf. (Errcode: 2)Cannot find mysqladmin command below in the wait_for ready() functionMySQL (MariaDB) Not Startingperformance_schema = off mysql running out of memory






.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty height:90px;width:728px;box-sizing:border-box;








0















I am following the instruction on the MariaDB site here all is fine until I get to the part shown below.



[root@squir scripts]# mysql_install_db --defaults-file=/mariadb/data/my.cnf

FATAL ERROR: Could not find mysqld

The following directories were searched:

/mariadb/mariadb/libexec
/mariadb/mariadb/sbin
/mariadb/mariadb/bin

If you compiled from source, you need to run 'make install' to
copy the software into the correct location ready for operation.

If you are using a binary release, you must either be at the top
level of the extracted archive, or pass the --basedir option
pointing to that location.


I wonder if there is the problem with the directory structure that is confusing the install. The documentation is also old, so I am not sure if there is a step missing.



What I Have done So far



  1. Downloaded the MariaDB.tar.gz

  2. Created a directory called /mariadb/

  3. Extracted the MariaDB.tar.gz and created a symbolic link called mariadb

  4. Created a user group and username for MariaDB directory

  5. Created /mariadb/data for storing MariaDB data file (Database)


  6. Copy the pre-written configuration file by this command.



    cp mariadb/support-files/my-medium.cnf mariadb/data/my.cnf




  7. Edited the my.cnf file as per instructed in here



    [client]
    port = 3307
    socket = /mariadb/data/mariadb.sock



    [mysqld]
    datadir = /mariadb/data
    basedir = /mariadb/mariadb
    port = 3307
    socket = /mariadb/data/mariadb.sock
    user = mariadb



  8. Copy the init.d script from support files in the right location:


  9. Edit /etc/init.d/mariadb replacing mysql with mariadb


  10. Run mysql_install_db by explicitly giving it the my.cnf file as argument:



    scripts/mysql_install_db --defaults-file=/opt/mariadb-data/my.cnf



Although on step 10, I can't follow this command. So I did what I stated above and shown the error.










share|improve this question
























  • What are you trying to do? meta.serverfault.com/questions/3608/…

    – GioMac
    Sep 12 '13 at 11:41











  • I am installing MariaDB on my server, but I don't want to remove mysql, yet. From the link provided above, I am about to install the server files as based on the my.cnf (Configuration file). I type that command and the problem shows up. @GioMac

    – Mr A
    Sep 13 '13 at 2:27











  • please provide more info about your installation.

    – GioMac
    Sep 13 '13 at 2:33











  • @GioMac Could you be specific on on what you are looking for?

    – Mr A
    Sep 13 '13 at 7:15











  • What have you done so far, your distribution, etc

    – GioMac
    Sep 13 '13 at 7:16

















0















I am following the instruction on the MariaDB site here all is fine until I get to the part shown below.



[root@squir scripts]# mysql_install_db --defaults-file=/mariadb/data/my.cnf

FATAL ERROR: Could not find mysqld

The following directories were searched:

/mariadb/mariadb/libexec
/mariadb/mariadb/sbin
/mariadb/mariadb/bin

If you compiled from source, you need to run 'make install' to
copy the software into the correct location ready for operation.

If you are using a binary release, you must either be at the top
level of the extracted archive, or pass the --basedir option
pointing to that location.


I wonder if there is the problem with the directory structure that is confusing the install. The documentation is also old, so I am not sure if there is a step missing.



What I Have done So far



  1. Downloaded the MariaDB.tar.gz

  2. Created a directory called /mariadb/

  3. Extracted the MariaDB.tar.gz and created a symbolic link called mariadb

  4. Created a user group and username for MariaDB directory

  5. Created /mariadb/data for storing MariaDB data file (Database)


  6. Copy the pre-written configuration file by this command.



    cp mariadb/support-files/my-medium.cnf mariadb/data/my.cnf




  7. Edited the my.cnf file as per instructed in here



    [client]
    port = 3307
    socket = /mariadb/data/mariadb.sock



    [mysqld]
    datadir = /mariadb/data
    basedir = /mariadb/mariadb
    port = 3307
    socket = /mariadb/data/mariadb.sock
    user = mariadb



  8. Copy the init.d script from support files in the right location:


  9. Edit /etc/init.d/mariadb replacing mysql with mariadb


  10. Run mysql_install_db by explicitly giving it the my.cnf file as argument:



    scripts/mysql_install_db --defaults-file=/opt/mariadb-data/my.cnf



Although on step 10, I can't follow this command. So I did what I stated above and shown the error.










share|improve this question
























  • What are you trying to do? meta.serverfault.com/questions/3608/…

    – GioMac
    Sep 12 '13 at 11:41











  • I am installing MariaDB on my server, but I don't want to remove mysql, yet. From the link provided above, I am about to install the server files as based on the my.cnf (Configuration file). I type that command and the problem shows up. @GioMac

    – Mr A
    Sep 13 '13 at 2:27











  • please provide more info about your installation.

    – GioMac
    Sep 13 '13 at 2:33











  • @GioMac Could you be specific on on what you are looking for?

    – Mr A
    Sep 13 '13 at 7:15











  • What have you done so far, your distribution, etc

    – GioMac
    Sep 13 '13 at 7:16













0












0








0








I am following the instruction on the MariaDB site here all is fine until I get to the part shown below.



[root@squir scripts]# mysql_install_db --defaults-file=/mariadb/data/my.cnf

FATAL ERROR: Could not find mysqld

The following directories were searched:

/mariadb/mariadb/libexec
/mariadb/mariadb/sbin
/mariadb/mariadb/bin

If you compiled from source, you need to run 'make install' to
copy the software into the correct location ready for operation.

If you are using a binary release, you must either be at the top
level of the extracted archive, or pass the --basedir option
pointing to that location.


I wonder if there is the problem with the directory structure that is confusing the install. The documentation is also old, so I am not sure if there is a step missing.



What I Have done So far



  1. Downloaded the MariaDB.tar.gz

  2. Created a directory called /mariadb/

  3. Extracted the MariaDB.tar.gz and created a symbolic link called mariadb

  4. Created a user group and username for MariaDB directory

  5. Created /mariadb/data for storing MariaDB data file (Database)


  6. Copy the pre-written configuration file by this command.



    cp mariadb/support-files/my-medium.cnf mariadb/data/my.cnf




  7. Edited the my.cnf file as per instructed in here



    [client]
    port = 3307
    socket = /mariadb/data/mariadb.sock



    [mysqld]
    datadir = /mariadb/data
    basedir = /mariadb/mariadb
    port = 3307
    socket = /mariadb/data/mariadb.sock
    user = mariadb



  8. Copy the init.d script from support files in the right location:


  9. Edit /etc/init.d/mariadb replacing mysql with mariadb


  10. Run mysql_install_db by explicitly giving it the my.cnf file as argument:



    scripts/mysql_install_db --defaults-file=/opt/mariadb-data/my.cnf



Although on step 10, I can't follow this command. So I did what I stated above and shown the error.










share|improve this question
















I am following the instruction on the MariaDB site here all is fine until I get to the part shown below.



[root@squir scripts]# mysql_install_db --defaults-file=/mariadb/data/my.cnf

FATAL ERROR: Could not find mysqld

The following directories were searched:

/mariadb/mariadb/libexec
/mariadb/mariadb/sbin
/mariadb/mariadb/bin

If you compiled from source, you need to run 'make install' to
copy the software into the correct location ready for operation.

If you are using a binary release, you must either be at the top
level of the extracted archive, or pass the --basedir option
pointing to that location.


I wonder if there is the problem with the directory structure that is confusing the install. The documentation is also old, so I am not sure if there is a step missing.



What I Have done So far



  1. Downloaded the MariaDB.tar.gz

  2. Created a directory called /mariadb/

  3. Extracted the MariaDB.tar.gz and created a symbolic link called mariadb

  4. Created a user group and username for MariaDB directory

  5. Created /mariadb/data for storing MariaDB data file (Database)


  6. Copy the pre-written configuration file by this command.



    cp mariadb/support-files/my-medium.cnf mariadb/data/my.cnf




  7. Edited the my.cnf file as per instructed in here



    [client]
    port = 3307
    socket = /mariadb/data/mariadb.sock



    [mysqld]
    datadir = /mariadb/data
    basedir = /mariadb/mariadb
    port = 3307
    socket = /mariadb/data/mariadb.sock
    user = mariadb



  8. Copy the init.d script from support files in the right location:


  9. Edit /etc/init.d/mariadb replacing mysql with mariadb


  10. Run mysql_install_db by explicitly giving it the my.cnf file as argument:



    scripts/mysql_install_db --defaults-file=/opt/mariadb-data/my.cnf



Although on step 10, I can't follow this command. So I did what I stated above and shown the error.







centos database mariadb






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Sep 2 '18 at 7:40







user145545

















asked Sep 12 '13 at 9:27









Mr AMr A

1286




1286












  • What are you trying to do? meta.serverfault.com/questions/3608/…

    – GioMac
    Sep 12 '13 at 11:41











  • I am installing MariaDB on my server, but I don't want to remove mysql, yet. From the link provided above, I am about to install the server files as based on the my.cnf (Configuration file). I type that command and the problem shows up. @GioMac

    – Mr A
    Sep 13 '13 at 2:27











  • please provide more info about your installation.

    – GioMac
    Sep 13 '13 at 2:33











  • @GioMac Could you be specific on on what you are looking for?

    – Mr A
    Sep 13 '13 at 7:15











  • What have you done so far, your distribution, etc

    – GioMac
    Sep 13 '13 at 7:16

















  • What are you trying to do? meta.serverfault.com/questions/3608/…

    – GioMac
    Sep 12 '13 at 11:41











  • I am installing MariaDB on my server, but I don't want to remove mysql, yet. From the link provided above, I am about to install the server files as based on the my.cnf (Configuration file). I type that command and the problem shows up. @GioMac

    – Mr A
    Sep 13 '13 at 2:27











  • please provide more info about your installation.

    – GioMac
    Sep 13 '13 at 2:33











  • @GioMac Could you be specific on on what you are looking for?

    – Mr A
    Sep 13 '13 at 7:15











  • What have you done so far, your distribution, etc

    – GioMac
    Sep 13 '13 at 7:16
















What are you trying to do? meta.serverfault.com/questions/3608/…

– GioMac
Sep 12 '13 at 11:41





What are you trying to do? meta.serverfault.com/questions/3608/…

– GioMac
Sep 12 '13 at 11:41













I am installing MariaDB on my server, but I don't want to remove mysql, yet. From the link provided above, I am about to install the server files as based on the my.cnf (Configuration file). I type that command and the problem shows up. @GioMac

– Mr A
Sep 13 '13 at 2:27





I am installing MariaDB on my server, but I don't want to remove mysql, yet. From the link provided above, I am about to install the server files as based on the my.cnf (Configuration file). I type that command and the problem shows up. @GioMac

– Mr A
Sep 13 '13 at 2:27













please provide more info about your installation.

– GioMac
Sep 13 '13 at 2:33





please provide more info about your installation.

– GioMac
Sep 13 '13 at 2:33













@GioMac Could you be specific on on what you are looking for?

– Mr A
Sep 13 '13 at 7:15





@GioMac Could you be specific on on what you are looking for?

– Mr A
Sep 13 '13 at 7:15













What have you done so far, your distribution, etc

– GioMac
Sep 13 '13 at 7:16





What have you done so far, your distribution, etc

– GioMac
Sep 13 '13 at 7:16










1 Answer
1






active

oldest

votes


















0














basedir is "base" directory, where all bin lib etc directories reside.



Change basedir = /mariadb/mariadb to basedir = /mariadb.



Also, I guess my.cnf location is somewhere at /mariadb/data/my.cnf, change --defaults-file=/opt/mariadb-data/my.cnf accordingly.



Also, mysql_install_db must run from /mariadb with scripts/mysql_install_db



mysql_install_db will call script from /usr/bin, not the one from /mariadb/scripts/.



It's better to follow standards and install it under /opt/.



Also, be sure selinux is in permissive mode:



getenforce



set "permissive" in /etc/sysconfig/selinux






share|improve this answer

























    Your Answer








    StackExchange.ready(function()
    var channelOptions =
    tags: "".split(" "),
    id: "2"
    ;
    initTagRenderer("".split(" "), "".split(" "), channelOptions);

    StackExchange.using("externalEditor", function()
    // Have to fire editor after snippets, if snippets enabled
    if (StackExchange.settings.snippets.snippetsEnabled)
    StackExchange.using("snippets", function()
    createEditor();
    );

    else
    createEditor();

    );

    function createEditor()
    StackExchange.prepareEditor(
    heartbeatType: 'answer',
    autoActivateHeartbeat: false,
    convertImagesToLinks: true,
    noModals: true,
    showLowRepImageUploadWarning: true,
    reputationToPostImages: 10,
    bindNavPrevention: true,
    postfix: "",
    imageUploader:
    brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
    contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
    allowUrls: true
    ,
    onDemand: true,
    discardSelector: ".discard-answer"
    ,immediatelyShowMarkdownHelp:true
    );



    );













    draft saved

    draft discarded


















    StackExchange.ready(
    function ()
    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fserverfault.com%2fquestions%2f538315%2finstalling-mariadb-along-with-mysql-could-not-find-mysqld%23new-answer', 'question_page');

    );

    Post as a guest















    Required, but never shown

























    1 Answer
    1






    active

    oldest

    votes








    1 Answer
    1






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes









    0














    basedir is "base" directory, where all bin lib etc directories reside.



    Change basedir = /mariadb/mariadb to basedir = /mariadb.



    Also, I guess my.cnf location is somewhere at /mariadb/data/my.cnf, change --defaults-file=/opt/mariadb-data/my.cnf accordingly.



    Also, mysql_install_db must run from /mariadb with scripts/mysql_install_db



    mysql_install_db will call script from /usr/bin, not the one from /mariadb/scripts/.



    It's better to follow standards and install it under /opt/.



    Also, be sure selinux is in permissive mode:



    getenforce



    set "permissive" in /etc/sysconfig/selinux






    share|improve this answer





























      0














      basedir is "base" directory, where all bin lib etc directories reside.



      Change basedir = /mariadb/mariadb to basedir = /mariadb.



      Also, I guess my.cnf location is somewhere at /mariadb/data/my.cnf, change --defaults-file=/opt/mariadb-data/my.cnf accordingly.



      Also, mysql_install_db must run from /mariadb with scripts/mysql_install_db



      mysql_install_db will call script from /usr/bin, not the one from /mariadb/scripts/.



      It's better to follow standards and install it under /opt/.



      Also, be sure selinux is in permissive mode:



      getenforce



      set "permissive" in /etc/sysconfig/selinux






      share|improve this answer



























        0












        0








        0







        basedir is "base" directory, where all bin lib etc directories reside.



        Change basedir = /mariadb/mariadb to basedir = /mariadb.



        Also, I guess my.cnf location is somewhere at /mariadb/data/my.cnf, change --defaults-file=/opt/mariadb-data/my.cnf accordingly.



        Also, mysql_install_db must run from /mariadb with scripts/mysql_install_db



        mysql_install_db will call script from /usr/bin, not the one from /mariadb/scripts/.



        It's better to follow standards and install it under /opt/.



        Also, be sure selinux is in permissive mode:



        getenforce



        set "permissive" in /etc/sysconfig/selinux






        share|improve this answer















        basedir is "base" directory, where all bin lib etc directories reside.



        Change basedir = /mariadb/mariadb to basedir = /mariadb.



        Also, I guess my.cnf location is somewhere at /mariadb/data/my.cnf, change --defaults-file=/opt/mariadb-data/my.cnf accordingly.



        Also, mysql_install_db must run from /mariadb with scripts/mysql_install_db



        mysql_install_db will call script from /usr/bin, not the one from /mariadb/scripts/.



        It's better to follow standards and install it under /opt/.



        Also, be sure selinux is in permissive mode:



        getenforce



        set "permissive" in /etc/sysconfig/selinux







        share|improve this answer














        share|improve this answer



        share|improve this answer








        edited Sep 13 '13 at 10:49

























        answered Sep 13 '13 at 10:43









        GioMacGioMac

        4,04921634




        4,04921634



























            draft saved

            draft discarded
















































            Thanks for contributing an answer to Server Fault!


            • Please be sure to answer the question. Provide details and share your research!

            But avoid


            • Asking for help, clarification, or responding to other answers.

            • Making statements based on opinion; back them up with references or personal experience.

            To learn more, see our tips on writing great answers.




            draft saved


            draft discarded














            StackExchange.ready(
            function ()
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fserverfault.com%2fquestions%2f538315%2finstalling-mariadb-along-with-mysql-could-not-find-mysqld%23new-answer', 'question_page');

            );

            Post as a guest















            Required, but never shown





















































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown

































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown







            Popular posts from this blog

            Wikipedia:Vital articles Мазмуну Biography - Өмүр баян Philosophy and psychology - Философия жана психология Religion - Дин Social sciences - Коомдук илимдер Language and literature - Тил жана адабият Science - Илим Technology - Технология Arts and recreation - Искусство жана эс алуу History and geography - Тарых жана география Навигация менюсу

            Bruxelas-Capital Índice Historia | Composición | Situación lingüística | Clima | Cidades irmandadas | Notas | Véxase tamén | Menú de navegacióneO uso das linguas en Bruxelas e a situación do neerlandés"Rexión de Bruxelas Capital"o orixinalSitio da rexiónPáxina de Bruselas no sitio da Oficina de Promoción Turística de Valonia e BruxelasMapa Interactivo da Rexión de Bruxelas-CapitaleeWorldCat332144929079854441105155190212ID28008674080552-90000 0001 0666 3698n94104302ID540940339365017018237

            What should I write in an apology letter, since I have decided not to join a company after accepting an offer letterShould I keep looking after accepting a job offer?What should I do when I've been verbally told I would get an offer letter, but still haven't gotten one after 4 weeks?Do I accept an offer from a company that I am not likely to join?New job hasn't confirmed starting date and I want to give current employer as much notice as possibleHow should I address my manager in my resignation letter?HR delayed background verification, now jobless as resignedNo email communication after accepting a formal written offer. How should I phrase the call?What should I do if after receiving a verbal offer letter I am informed that my written job offer is put on hold due to some internal issues?Should I inform the current employer that I am about to resign within 1-2 weeks since I have signed the offer letter and waiting for visa?What company will do, if I send their offer letter to another company