I try to install a MySQL 8 multiple instances in my Ubuntu 18.x droplet.
I configured my.cnf (mysqld groups) , made a second
mysqld2.sock, created a new datadir (/var/lib/mysql2 inkl. user und usergroup mysql and chmod 777) und try to start the instances.
mysqld_multi start 1
And then I try to start the second instance
mysqld_multi start 2
and I always will get the FATAL ERROR “Tried to start mysqld under group [mysqld2], but no data directory was found or could be created. data directory used: /var/lib/mysql2”
and I don’t know why!!!
Be aware - it’s MySQL 8 and
mysql_install_db to install the mysql databases is deprecated! Instead I should use
mysqld --initialize but it won’t work as well.
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.
Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.
Click below to sign up and get $200 of credit to try our products over 60 days!