Hi,
I try to install a MySQL 8 multiple instances in my Ubuntu 18.x droplet.
I configured my.cnf (mysqld groups) , made a second /var/run/mysqld2.pin and 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
ok.
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.
Please help!
BR Martin
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!
Hi there @mheinrich67,
I believe that you need to prepare your data directory for the second instance.
You can follow the steps here on how to prepare multiple data directories for MySQL 8:
https://dev.mysql.com/doc/refman/8.0/en/multiple-data-directories.html
Regards, Bobby
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.