Can't launch multiple instances of MySQL in Linux












0















I'm in real trouble here. First, thank you to all of you that will take the time to read my post.



So, I've followed tones and tone of tutorial to create multiple MySQL instances.
On the paper, it's not complicated. I've followed this tutorial (in french, sorry, but it's not complicated to understand) http://www.bocciolesi.fr/tutoriels-et-cours/installer-plusieurs-instances-de-mysql/



I've created a separated my.cnf that I've named multi_my.cnf. Here is the content :



[mysqld_multi]
mysqld = /usr/bin/mysqld_safe
mysqladmin = /usr/bin/mysqladmin
user = multi_admin
password = multi_admin
log = /var/log/mysqld_multi.log

[mysqld2]
socket = /tmp/mysql.sock2
port = 3307
pid-file = /var/lib/mysql2/hostname.pid1
datadir = /var/lib/mysql2
#language = /usr/share/mysql-8.0/mysql/french
user = cube


Of course, I did a copy of the /var/lib/mysql folder to /var/lib/mysql2 and managed the permissions. In this side, I think everything is good. Also, my multi_admin user is configured.



But, when I run the command :



mysqld_multi -–defaults-file=/etc/mysql/multi_my.cnf start


And then, the command :



mysqld_multi -–defaults-file=/etc/mysql/multi_my.cnf report


I end up having :



Reporting MySQL servers
MySQL server from group: mysqld2 is not running


The same thing happens when I try to put the content of multi_my.cnf on the my.cnf file.



Here is the content of /var/log/mysqld_multi.log :



mysqld_multi log file version 2.16; run: lun. sept. 24 11:53:56 2018

Starting MySQL servers

2018-09-24T09:53:56.129051Z mysqld_safe Logging to '/var/log/mysql/error.log'.
2018-09-24T09:53:56.140844Z mysqld_safe Starting mysqld daemon with databases from /var/lib/mysql
2018-09-24T09:53:56.389354Z mysqld_safe mysqld from pid file /var/lib/mysql2/hostname.pid2 ended
mysqld_multi log file version 2.16; run: lun. sept. 24 11:53:58 2018

Reporting MySQL servers
MySQL server from group: mysqld2 is not running


The thing that brings my attention here is that in the log, we can see that the daemon tries to use the databases from /var/lib/mysql. Shouldn't it be /var/lib/mysql2 ?



Any explanation would be much appreciated !
Thank you.










share|improve this question














bumped to the homepage by Community 14 mins ago


This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.






migrated from stackoverflow.com Sep 24 '18 at 10:37


This question came from our site for professional and enthusiast programmers.



















  • This question has nothing to do with programming, this is pure admin task. You may get assistance on the DBA sister site of SO.

    – Shadow
    Sep 24 '18 at 10:14











  • IIRC, mysql_multi stopped being supported several years ago.

    – Rick James
    Oct 10 '18 at 4:27
















0















I'm in real trouble here. First, thank you to all of you that will take the time to read my post.



So, I've followed tones and tone of tutorial to create multiple MySQL instances.
On the paper, it's not complicated. I've followed this tutorial (in french, sorry, but it's not complicated to understand) http://www.bocciolesi.fr/tutoriels-et-cours/installer-plusieurs-instances-de-mysql/



I've created a separated my.cnf that I've named multi_my.cnf. Here is the content :



[mysqld_multi]
mysqld = /usr/bin/mysqld_safe
mysqladmin = /usr/bin/mysqladmin
user = multi_admin
password = multi_admin
log = /var/log/mysqld_multi.log

[mysqld2]
socket = /tmp/mysql.sock2
port = 3307
pid-file = /var/lib/mysql2/hostname.pid1
datadir = /var/lib/mysql2
#language = /usr/share/mysql-8.0/mysql/french
user = cube


Of course, I did a copy of the /var/lib/mysql folder to /var/lib/mysql2 and managed the permissions. In this side, I think everything is good. Also, my multi_admin user is configured.



But, when I run the command :



mysqld_multi -–defaults-file=/etc/mysql/multi_my.cnf start


And then, the command :



mysqld_multi -–defaults-file=/etc/mysql/multi_my.cnf report


I end up having :



Reporting MySQL servers
MySQL server from group: mysqld2 is not running


The same thing happens when I try to put the content of multi_my.cnf on the my.cnf file.



Here is the content of /var/log/mysqld_multi.log :



mysqld_multi log file version 2.16; run: lun. sept. 24 11:53:56 2018

Starting MySQL servers

2018-09-24T09:53:56.129051Z mysqld_safe Logging to '/var/log/mysql/error.log'.
2018-09-24T09:53:56.140844Z mysqld_safe Starting mysqld daemon with databases from /var/lib/mysql
2018-09-24T09:53:56.389354Z mysqld_safe mysqld from pid file /var/lib/mysql2/hostname.pid2 ended
mysqld_multi log file version 2.16; run: lun. sept. 24 11:53:58 2018

Reporting MySQL servers
MySQL server from group: mysqld2 is not running


The thing that brings my attention here is that in the log, we can see that the daemon tries to use the databases from /var/lib/mysql. Shouldn't it be /var/lib/mysql2 ?



Any explanation would be much appreciated !
Thank you.










share|improve this question














bumped to the homepage by Community 14 mins ago


This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.






migrated from stackoverflow.com Sep 24 '18 at 10:37


This question came from our site for professional and enthusiast programmers.



















  • This question has nothing to do with programming, this is pure admin task. You may get assistance on the DBA sister site of SO.

    – Shadow
    Sep 24 '18 at 10:14











  • IIRC, mysql_multi stopped being supported several years ago.

    – Rick James
    Oct 10 '18 at 4:27














0












0








0








I'm in real trouble here. First, thank you to all of you that will take the time to read my post.



So, I've followed tones and tone of tutorial to create multiple MySQL instances.
On the paper, it's not complicated. I've followed this tutorial (in french, sorry, but it's not complicated to understand) http://www.bocciolesi.fr/tutoriels-et-cours/installer-plusieurs-instances-de-mysql/



I've created a separated my.cnf that I've named multi_my.cnf. Here is the content :



[mysqld_multi]
mysqld = /usr/bin/mysqld_safe
mysqladmin = /usr/bin/mysqladmin
user = multi_admin
password = multi_admin
log = /var/log/mysqld_multi.log

[mysqld2]
socket = /tmp/mysql.sock2
port = 3307
pid-file = /var/lib/mysql2/hostname.pid1
datadir = /var/lib/mysql2
#language = /usr/share/mysql-8.0/mysql/french
user = cube


Of course, I did a copy of the /var/lib/mysql folder to /var/lib/mysql2 and managed the permissions. In this side, I think everything is good. Also, my multi_admin user is configured.



But, when I run the command :



mysqld_multi -–defaults-file=/etc/mysql/multi_my.cnf start


And then, the command :



mysqld_multi -–defaults-file=/etc/mysql/multi_my.cnf report


I end up having :



Reporting MySQL servers
MySQL server from group: mysqld2 is not running


The same thing happens when I try to put the content of multi_my.cnf on the my.cnf file.



Here is the content of /var/log/mysqld_multi.log :



mysqld_multi log file version 2.16; run: lun. sept. 24 11:53:56 2018

Starting MySQL servers

2018-09-24T09:53:56.129051Z mysqld_safe Logging to '/var/log/mysql/error.log'.
2018-09-24T09:53:56.140844Z mysqld_safe Starting mysqld daemon with databases from /var/lib/mysql
2018-09-24T09:53:56.389354Z mysqld_safe mysqld from pid file /var/lib/mysql2/hostname.pid2 ended
mysqld_multi log file version 2.16; run: lun. sept. 24 11:53:58 2018

Reporting MySQL servers
MySQL server from group: mysqld2 is not running


The thing that brings my attention here is that in the log, we can see that the daemon tries to use the databases from /var/lib/mysql. Shouldn't it be /var/lib/mysql2 ?



Any explanation would be much appreciated !
Thank you.










share|improve this question














I'm in real trouble here. First, thank you to all of you that will take the time to read my post.



So, I've followed tones and tone of tutorial to create multiple MySQL instances.
On the paper, it's not complicated. I've followed this tutorial (in french, sorry, but it's not complicated to understand) http://www.bocciolesi.fr/tutoriels-et-cours/installer-plusieurs-instances-de-mysql/



I've created a separated my.cnf that I've named multi_my.cnf. Here is the content :



[mysqld_multi]
mysqld = /usr/bin/mysqld_safe
mysqladmin = /usr/bin/mysqladmin
user = multi_admin
password = multi_admin
log = /var/log/mysqld_multi.log

[mysqld2]
socket = /tmp/mysql.sock2
port = 3307
pid-file = /var/lib/mysql2/hostname.pid1
datadir = /var/lib/mysql2
#language = /usr/share/mysql-8.0/mysql/french
user = cube


Of course, I did a copy of the /var/lib/mysql folder to /var/lib/mysql2 and managed the permissions. In this side, I think everything is good. Also, my multi_admin user is configured.



But, when I run the command :



mysqld_multi -–defaults-file=/etc/mysql/multi_my.cnf start


And then, the command :



mysqld_multi -–defaults-file=/etc/mysql/multi_my.cnf report


I end up having :



Reporting MySQL servers
MySQL server from group: mysqld2 is not running


The same thing happens when I try to put the content of multi_my.cnf on the my.cnf file.



Here is the content of /var/log/mysqld_multi.log :



mysqld_multi log file version 2.16; run: lun. sept. 24 11:53:56 2018

Starting MySQL servers

2018-09-24T09:53:56.129051Z mysqld_safe Logging to '/var/log/mysql/error.log'.
2018-09-24T09:53:56.140844Z mysqld_safe Starting mysqld daemon with databases from /var/lib/mysql
2018-09-24T09:53:56.389354Z mysqld_safe mysqld from pid file /var/lib/mysql2/hostname.pid2 ended
mysqld_multi log file version 2.16; run: lun. sept. 24 11:53:58 2018

Reporting MySQL servers
MySQL server from group: mysqld2 is not running


The thing that brings my attention here is that in the log, we can see that the daemon tries to use the databases from /var/lib/mysql. Shouldn't it be /var/lib/mysql2 ?



Any explanation would be much appreciated !
Thank you.







mysql linux






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked Sep 24 '18 at 9:58









Antonin JacobAntonin Jacob

1




1





bumped to the homepage by Community 14 mins ago


This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.







bumped to the homepage by Community 14 mins ago


This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.






migrated from stackoverflow.com Sep 24 '18 at 10:37


This question came from our site for professional and enthusiast programmers.









migrated from stackoverflow.com Sep 24 '18 at 10:37


This question came from our site for professional and enthusiast programmers.















  • This question has nothing to do with programming, this is pure admin task. You may get assistance on the DBA sister site of SO.

    – Shadow
    Sep 24 '18 at 10:14











  • IIRC, mysql_multi stopped being supported several years ago.

    – Rick James
    Oct 10 '18 at 4:27



















  • This question has nothing to do with programming, this is pure admin task. You may get assistance on the DBA sister site of SO.

    – Shadow
    Sep 24 '18 at 10:14











  • IIRC, mysql_multi stopped being supported several years ago.

    – Rick James
    Oct 10 '18 at 4:27

















This question has nothing to do with programming, this is pure admin task. You may get assistance on the DBA sister site of SO.

– Shadow
Sep 24 '18 at 10:14





This question has nothing to do with programming, this is pure admin task. You may get assistance on the DBA sister site of SO.

– Shadow
Sep 24 '18 at 10:14













IIRC, mysql_multi stopped being supported several years ago.

– Rick James
Oct 10 '18 at 4:27





IIRC, mysql_multi stopped being supported several years ago.

– Rick James
Oct 10 '18 at 4:27










1 Answer
1






active

oldest

votes


















0














The mysqld_multi manual states:



Usage: mysqld_multi [OPTIONS] {start|reload|stop|report} [GNR,GNR,GNR...]
or mysqld_multi [OPTIONS] {start|reload|stop|report} [GNR-GNR,GNR,GNR,GNR,...]


Where GNR is the group number. So to start the mysqld2 server you should try:



mysqld_multi --defaults-file=/etc/mysql/multi_my.cnf start 2


And to start both:



mysqld_multi --defaults-file=/etc/mysql/multi_my.cnf start 1,2


You could also view an example mysqld_multi config to validate against yours with:



mysqld_multi --example





share|improve this answer
























  • Hello, Thanks for your answer. Unfortunately, I've tried "start 2" tons of times, and the result is the same. EDIT : Here are the two conf files compared : Mine is [mysqld2] socket = /tmp/mysql.sock2 port = 3307 pid-file = /var/lib/mysql2/hostname.pid2 datadir = /var/lib/mysql2 user = cube and the example one is [mysqld2] socket = /tmp/mysql.sock2 port = 3307 pid-file = /var/lib/mysql2/hostname.pid2 datadir = /var/lib/mysql2 language = /usr/share/mysql-8.0/mysql/english user = unix_user1

    – Antonin Jacob
    Sep 25 '18 at 6:19













  • You could check the parameters mysql using to start up. Client: my_print_defaults --defaults-file=/etc/multi_my.cnf mysql2 - Server: my_print_defaults --defaults-file=/etc/multi_my.cnf mysqld2 - or - mysqld --defaults-file=/etc/multi_my.cnf --defaults-group-suffix=2 --print-defaults - You can also try spawning the mysqld manually on the console to check if it really does start up successfully: mysqld --defaults-file=/etc/multi_my.cnf --user cube

    – socaire
    Sep 25 '18 at 13:48













  • Hi. There is only a mysqld_multi.log file in the /var/lib/ dir, but nothing in it. I've checked again /var/log/mysqld_multi.log and the exact sames lines as in my post appears, and the /var/log/mysql/error.log don't give any info about my instances.

    – Antonin Jacob
    Sep 25 '18 at 14:04











  • Ok, I just answered to your previous message before you edit it. I'm gonna check what you said tomorrow, I have to leave my workplace now. Thank you, I'll keep you in touch !

    – Antonin Jacob
    Sep 25 '18 at 14:06











  • Hi again. Sorry for the long wait. So I've tried different things, now my conf are all in my.cnf. I haven't changed the datadir, but I tried couple time to set them in a different location, just to see what happens. I finally decided to reinstall Mysql after getting tons of errors, and now, the "normal" service works fine but mysqld --user [whatever] seems to load for a minute (I can't write anything on the console) and then, nothing.

    – Antonin Jacob
    Oct 1 '18 at 9:03











Your Answer








StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "182"
};
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: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
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%2fdba.stackexchange.com%2fquestions%2f218403%2fcant-launch-multiple-instances-of-mysql-in-linux%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














The mysqld_multi manual states:



Usage: mysqld_multi [OPTIONS] {start|reload|stop|report} [GNR,GNR,GNR...]
or mysqld_multi [OPTIONS] {start|reload|stop|report} [GNR-GNR,GNR,GNR,GNR,...]


Where GNR is the group number. So to start the mysqld2 server you should try:



mysqld_multi --defaults-file=/etc/mysql/multi_my.cnf start 2


And to start both:



mysqld_multi --defaults-file=/etc/mysql/multi_my.cnf start 1,2


You could also view an example mysqld_multi config to validate against yours with:



mysqld_multi --example





share|improve this answer
























  • Hello, Thanks for your answer. Unfortunately, I've tried "start 2" tons of times, and the result is the same. EDIT : Here are the two conf files compared : Mine is [mysqld2] socket = /tmp/mysql.sock2 port = 3307 pid-file = /var/lib/mysql2/hostname.pid2 datadir = /var/lib/mysql2 user = cube and the example one is [mysqld2] socket = /tmp/mysql.sock2 port = 3307 pid-file = /var/lib/mysql2/hostname.pid2 datadir = /var/lib/mysql2 language = /usr/share/mysql-8.0/mysql/english user = unix_user1

    – Antonin Jacob
    Sep 25 '18 at 6:19













  • You could check the parameters mysql using to start up. Client: my_print_defaults --defaults-file=/etc/multi_my.cnf mysql2 - Server: my_print_defaults --defaults-file=/etc/multi_my.cnf mysqld2 - or - mysqld --defaults-file=/etc/multi_my.cnf --defaults-group-suffix=2 --print-defaults - You can also try spawning the mysqld manually on the console to check if it really does start up successfully: mysqld --defaults-file=/etc/multi_my.cnf --user cube

    – socaire
    Sep 25 '18 at 13:48













  • Hi. There is only a mysqld_multi.log file in the /var/lib/ dir, but nothing in it. I've checked again /var/log/mysqld_multi.log and the exact sames lines as in my post appears, and the /var/log/mysql/error.log don't give any info about my instances.

    – Antonin Jacob
    Sep 25 '18 at 14:04











  • Ok, I just answered to your previous message before you edit it. I'm gonna check what you said tomorrow, I have to leave my workplace now. Thank you, I'll keep you in touch !

    – Antonin Jacob
    Sep 25 '18 at 14:06











  • Hi again. Sorry for the long wait. So I've tried different things, now my conf are all in my.cnf. I haven't changed the datadir, but I tried couple time to set them in a different location, just to see what happens. I finally decided to reinstall Mysql after getting tons of errors, and now, the "normal" service works fine but mysqld --user [whatever] seems to load for a minute (I can't write anything on the console) and then, nothing.

    – Antonin Jacob
    Oct 1 '18 at 9:03
















0














The mysqld_multi manual states:



Usage: mysqld_multi [OPTIONS] {start|reload|stop|report} [GNR,GNR,GNR...]
or mysqld_multi [OPTIONS] {start|reload|stop|report} [GNR-GNR,GNR,GNR,GNR,...]


Where GNR is the group number. So to start the mysqld2 server you should try:



mysqld_multi --defaults-file=/etc/mysql/multi_my.cnf start 2


And to start both:



mysqld_multi --defaults-file=/etc/mysql/multi_my.cnf start 1,2


You could also view an example mysqld_multi config to validate against yours with:



mysqld_multi --example





share|improve this answer
























  • Hello, Thanks for your answer. Unfortunately, I've tried "start 2" tons of times, and the result is the same. EDIT : Here are the two conf files compared : Mine is [mysqld2] socket = /tmp/mysql.sock2 port = 3307 pid-file = /var/lib/mysql2/hostname.pid2 datadir = /var/lib/mysql2 user = cube and the example one is [mysqld2] socket = /tmp/mysql.sock2 port = 3307 pid-file = /var/lib/mysql2/hostname.pid2 datadir = /var/lib/mysql2 language = /usr/share/mysql-8.0/mysql/english user = unix_user1

    – Antonin Jacob
    Sep 25 '18 at 6:19













  • You could check the parameters mysql using to start up. Client: my_print_defaults --defaults-file=/etc/multi_my.cnf mysql2 - Server: my_print_defaults --defaults-file=/etc/multi_my.cnf mysqld2 - or - mysqld --defaults-file=/etc/multi_my.cnf --defaults-group-suffix=2 --print-defaults - You can also try spawning the mysqld manually on the console to check if it really does start up successfully: mysqld --defaults-file=/etc/multi_my.cnf --user cube

    – socaire
    Sep 25 '18 at 13:48













  • Hi. There is only a mysqld_multi.log file in the /var/lib/ dir, but nothing in it. I've checked again /var/log/mysqld_multi.log and the exact sames lines as in my post appears, and the /var/log/mysql/error.log don't give any info about my instances.

    – Antonin Jacob
    Sep 25 '18 at 14:04











  • Ok, I just answered to your previous message before you edit it. I'm gonna check what you said tomorrow, I have to leave my workplace now. Thank you, I'll keep you in touch !

    – Antonin Jacob
    Sep 25 '18 at 14:06











  • Hi again. Sorry for the long wait. So I've tried different things, now my conf are all in my.cnf. I haven't changed the datadir, but I tried couple time to set them in a different location, just to see what happens. I finally decided to reinstall Mysql after getting tons of errors, and now, the "normal" service works fine but mysqld --user [whatever] seems to load for a minute (I can't write anything on the console) and then, nothing.

    – Antonin Jacob
    Oct 1 '18 at 9:03














0












0








0







The mysqld_multi manual states:



Usage: mysqld_multi [OPTIONS] {start|reload|stop|report} [GNR,GNR,GNR...]
or mysqld_multi [OPTIONS] {start|reload|stop|report} [GNR-GNR,GNR,GNR,GNR,...]


Where GNR is the group number. So to start the mysqld2 server you should try:



mysqld_multi --defaults-file=/etc/mysql/multi_my.cnf start 2


And to start both:



mysqld_multi --defaults-file=/etc/mysql/multi_my.cnf start 1,2


You could also view an example mysqld_multi config to validate against yours with:



mysqld_multi --example





share|improve this answer













The mysqld_multi manual states:



Usage: mysqld_multi [OPTIONS] {start|reload|stop|report} [GNR,GNR,GNR...]
or mysqld_multi [OPTIONS] {start|reload|stop|report} [GNR-GNR,GNR,GNR,GNR,...]


Where GNR is the group number. So to start the mysqld2 server you should try:



mysqld_multi --defaults-file=/etc/mysql/multi_my.cnf start 2


And to start both:



mysqld_multi --defaults-file=/etc/mysql/multi_my.cnf start 1,2


You could also view an example mysqld_multi config to validate against yours with:



mysqld_multi --example






share|improve this answer












share|improve this answer



share|improve this answer










answered Sep 24 '18 at 21:14









socairesocaire

794




794













  • Hello, Thanks for your answer. Unfortunately, I've tried "start 2" tons of times, and the result is the same. EDIT : Here are the two conf files compared : Mine is [mysqld2] socket = /tmp/mysql.sock2 port = 3307 pid-file = /var/lib/mysql2/hostname.pid2 datadir = /var/lib/mysql2 user = cube and the example one is [mysqld2] socket = /tmp/mysql.sock2 port = 3307 pid-file = /var/lib/mysql2/hostname.pid2 datadir = /var/lib/mysql2 language = /usr/share/mysql-8.0/mysql/english user = unix_user1

    – Antonin Jacob
    Sep 25 '18 at 6:19













  • You could check the parameters mysql using to start up. Client: my_print_defaults --defaults-file=/etc/multi_my.cnf mysql2 - Server: my_print_defaults --defaults-file=/etc/multi_my.cnf mysqld2 - or - mysqld --defaults-file=/etc/multi_my.cnf --defaults-group-suffix=2 --print-defaults - You can also try spawning the mysqld manually on the console to check if it really does start up successfully: mysqld --defaults-file=/etc/multi_my.cnf --user cube

    – socaire
    Sep 25 '18 at 13:48













  • Hi. There is only a mysqld_multi.log file in the /var/lib/ dir, but nothing in it. I've checked again /var/log/mysqld_multi.log and the exact sames lines as in my post appears, and the /var/log/mysql/error.log don't give any info about my instances.

    – Antonin Jacob
    Sep 25 '18 at 14:04











  • Ok, I just answered to your previous message before you edit it. I'm gonna check what you said tomorrow, I have to leave my workplace now. Thank you, I'll keep you in touch !

    – Antonin Jacob
    Sep 25 '18 at 14:06











  • Hi again. Sorry for the long wait. So I've tried different things, now my conf are all in my.cnf. I haven't changed the datadir, but I tried couple time to set them in a different location, just to see what happens. I finally decided to reinstall Mysql after getting tons of errors, and now, the "normal" service works fine but mysqld --user [whatever] seems to load for a minute (I can't write anything on the console) and then, nothing.

    – Antonin Jacob
    Oct 1 '18 at 9:03



















  • Hello, Thanks for your answer. Unfortunately, I've tried "start 2" tons of times, and the result is the same. EDIT : Here are the two conf files compared : Mine is [mysqld2] socket = /tmp/mysql.sock2 port = 3307 pid-file = /var/lib/mysql2/hostname.pid2 datadir = /var/lib/mysql2 user = cube and the example one is [mysqld2] socket = /tmp/mysql.sock2 port = 3307 pid-file = /var/lib/mysql2/hostname.pid2 datadir = /var/lib/mysql2 language = /usr/share/mysql-8.0/mysql/english user = unix_user1

    – Antonin Jacob
    Sep 25 '18 at 6:19













  • You could check the parameters mysql using to start up. Client: my_print_defaults --defaults-file=/etc/multi_my.cnf mysql2 - Server: my_print_defaults --defaults-file=/etc/multi_my.cnf mysqld2 - or - mysqld --defaults-file=/etc/multi_my.cnf --defaults-group-suffix=2 --print-defaults - You can also try spawning the mysqld manually on the console to check if it really does start up successfully: mysqld --defaults-file=/etc/multi_my.cnf --user cube

    – socaire
    Sep 25 '18 at 13:48













  • Hi. There is only a mysqld_multi.log file in the /var/lib/ dir, but nothing in it. I've checked again /var/log/mysqld_multi.log and the exact sames lines as in my post appears, and the /var/log/mysql/error.log don't give any info about my instances.

    – Antonin Jacob
    Sep 25 '18 at 14:04











  • Ok, I just answered to your previous message before you edit it. I'm gonna check what you said tomorrow, I have to leave my workplace now. Thank you, I'll keep you in touch !

    – Antonin Jacob
    Sep 25 '18 at 14:06











  • Hi again. Sorry for the long wait. So I've tried different things, now my conf are all in my.cnf. I haven't changed the datadir, but I tried couple time to set them in a different location, just to see what happens. I finally decided to reinstall Mysql after getting tons of errors, and now, the "normal" service works fine but mysqld --user [whatever] seems to load for a minute (I can't write anything on the console) and then, nothing.

    – Antonin Jacob
    Oct 1 '18 at 9:03

















Hello, Thanks for your answer. Unfortunately, I've tried "start 2" tons of times, and the result is the same. EDIT : Here are the two conf files compared : Mine is [mysqld2] socket = /tmp/mysql.sock2 port = 3307 pid-file = /var/lib/mysql2/hostname.pid2 datadir = /var/lib/mysql2 user = cube and the example one is [mysqld2] socket = /tmp/mysql.sock2 port = 3307 pid-file = /var/lib/mysql2/hostname.pid2 datadir = /var/lib/mysql2 language = /usr/share/mysql-8.0/mysql/english user = unix_user1

– Antonin Jacob
Sep 25 '18 at 6:19







Hello, Thanks for your answer. Unfortunately, I've tried "start 2" tons of times, and the result is the same. EDIT : Here are the two conf files compared : Mine is [mysqld2] socket = /tmp/mysql.sock2 port = 3307 pid-file = /var/lib/mysql2/hostname.pid2 datadir = /var/lib/mysql2 user = cube and the example one is [mysqld2] socket = /tmp/mysql.sock2 port = 3307 pid-file = /var/lib/mysql2/hostname.pid2 datadir = /var/lib/mysql2 language = /usr/share/mysql-8.0/mysql/english user = unix_user1

– Antonin Jacob
Sep 25 '18 at 6:19















You could check the parameters mysql using to start up. Client: my_print_defaults --defaults-file=/etc/multi_my.cnf mysql2 - Server: my_print_defaults --defaults-file=/etc/multi_my.cnf mysqld2 - or - mysqld --defaults-file=/etc/multi_my.cnf --defaults-group-suffix=2 --print-defaults - You can also try spawning the mysqld manually on the console to check if it really does start up successfully: mysqld --defaults-file=/etc/multi_my.cnf --user cube

– socaire
Sep 25 '18 at 13:48







You could check the parameters mysql using to start up. Client: my_print_defaults --defaults-file=/etc/multi_my.cnf mysql2 - Server: my_print_defaults --defaults-file=/etc/multi_my.cnf mysqld2 - or - mysqld --defaults-file=/etc/multi_my.cnf --defaults-group-suffix=2 --print-defaults - You can also try spawning the mysqld manually on the console to check if it really does start up successfully: mysqld --defaults-file=/etc/multi_my.cnf --user cube

– socaire
Sep 25 '18 at 13:48















Hi. There is only a mysqld_multi.log file in the /var/lib/ dir, but nothing in it. I've checked again /var/log/mysqld_multi.log and the exact sames lines as in my post appears, and the /var/log/mysql/error.log don't give any info about my instances.

– Antonin Jacob
Sep 25 '18 at 14:04





Hi. There is only a mysqld_multi.log file in the /var/lib/ dir, but nothing in it. I've checked again /var/log/mysqld_multi.log and the exact sames lines as in my post appears, and the /var/log/mysql/error.log don't give any info about my instances.

– Antonin Jacob
Sep 25 '18 at 14:04













Ok, I just answered to your previous message before you edit it. I'm gonna check what you said tomorrow, I have to leave my workplace now. Thank you, I'll keep you in touch !

– Antonin Jacob
Sep 25 '18 at 14:06





Ok, I just answered to your previous message before you edit it. I'm gonna check what you said tomorrow, I have to leave my workplace now. Thank you, I'll keep you in touch !

– Antonin Jacob
Sep 25 '18 at 14:06













Hi again. Sorry for the long wait. So I've tried different things, now my conf are all in my.cnf. I haven't changed the datadir, but I tried couple time to set them in a different location, just to see what happens. I finally decided to reinstall Mysql after getting tons of errors, and now, the "normal" service works fine but mysqld --user [whatever] seems to load for a minute (I can't write anything on the console) and then, nothing.

– Antonin Jacob
Oct 1 '18 at 9:03





Hi again. Sorry for the long wait. So I've tried different things, now my conf are all in my.cnf. I haven't changed the datadir, but I tried couple time to set them in a different location, just to see what happens. I finally decided to reinstall Mysql after getting tons of errors, and now, the "normal" service works fine but mysqld --user [whatever] seems to load for a minute (I can't write anything on the console) and then, nothing.

– Antonin Jacob
Oct 1 '18 at 9:03


















draft saved

draft discarded




















































Thanks for contributing an answer to Database Administrators Stack Exchange!


  • 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%2fdba.stackexchange.com%2fquestions%2f218403%2fcant-launch-multiple-instances-of-mysql-in-linux%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

الفوسفات في المغرب

Four equal circles intersect: What is the area of the small shaded portion and its height

جامعة ليفربول