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;
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
- Downloaded the MariaDB.tar.gz
- Created a directory called /mariadb/
- Extracted the MariaDB.tar.gz and created a symbolic link called mariadb
- Created a user group and username for MariaDB directory
- Created /mariadb/data for storing MariaDB data file (Database)
Copy the pre-written configuration file by this command.
cp mariadb/support-files/my-medium.cnf mariadb/data/my.cnf
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 = mariadbCopy the init.d script from support files in the right location:
- Edit /etc/init.d/mariadb replacing mysql with mariadb
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
|
show 1 more comment
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
- Downloaded the MariaDB.tar.gz
- Created a directory called /mariadb/
- Extracted the MariaDB.tar.gz and created a symbolic link called mariadb
- Created a user group and username for MariaDB directory
- Created /mariadb/data for storing MariaDB data file (Database)
Copy the pre-written configuration file by this command.
cp mariadb/support-files/my-medium.cnf mariadb/data/my.cnf
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 = mariadbCopy the init.d script from support files in the right location:
- Edit /etc/init.d/mariadb replacing mysql with mariadb
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
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
|
show 1 more comment
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
- Downloaded the MariaDB.tar.gz
- Created a directory called /mariadb/
- Extracted the MariaDB.tar.gz and created a symbolic link called mariadb
- Created a user group and username for MariaDB directory
- Created /mariadb/data for storing MariaDB data file (Database)
Copy the pre-written configuration file by this command.
cp mariadb/support-files/my-medium.cnf mariadb/data/my.cnf
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 = mariadbCopy the init.d script from support files in the right location:
- Edit /etc/init.d/mariadb replacing mysql with mariadb
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
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
- Downloaded the MariaDB.tar.gz
- Created a directory called /mariadb/
- Extracted the MariaDB.tar.gz and created a symbolic link called mariadb
- Created a user group and username for MariaDB directory
- Created /mariadb/data for storing MariaDB data file (Database)
Copy the pre-written configuration file by this command.
cp mariadb/support-files/my-medium.cnf mariadb/data/my.cnf
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 = mariadbCopy the init.d script from support files in the right location:
- Edit /etc/init.d/mariadb replacing mysql with mariadb
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
centos database mariadb
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
|
show 1 more comment
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
|
show 1 more comment
1 Answer
1
active
oldest
votes
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
add a comment |
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
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
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
add a comment |
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
add a comment |
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
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
edited Sep 13 '13 at 10:49
answered Sep 13 '13 at 10:43
GioMacGioMac
4,04921634
4,04921634
add a comment |
add a comment |
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.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
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
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