Scale up as you grow — whether you're running one virtual machine or ten thousand.

From GPU-powered inference and Kubernetes to managed databases and storage, get everything you need to build, scale, and deploy intelligent applications.

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!
In the conclusion you say, “we’ve moved MySQL’s data directory to a new location and updated SELinux to accommodate the adjustment” but there is no mention of SELinux anywhere in the article. Am I missing something?
After following through the instructions I can’t start mysqld. I get an error that says, Job for mysql.service failed because the control process exited with error code. See “systemctl status mysql.service” and “journalctl -xe” for details.
While researching it, I found hte instructions for doing this on Ubuntu and it mentions needing to configure apparmor, which we don’t have in CentOS. That led me to looking a the permissions on the new location though. I tried sudo chown -R mysql:mysql on it with no luck. When I look at the location in the Files Browser I notice a padlock icon.
Thoughts?
run the below commands
this will start the db
For my server, I also need to update php.ini (/etc/php.ini) and restart apache: pdo_mysql.default_socket = /new/data/folder/mysql.sock mysql.default_socket = /new/data/folder/mysql.sock mysqli.default_socket = /new/data/folder/mysql.sock
I was trying to change MySQL db directory but once I restarted the server it was showing port busy. I killed the process listening to that port, killed it and working perfectly.
The innodb_directories option, which defines directories to scan at startup for tablespace files, supports moving or restoring tablespace files to a new location while the server is offline. During startup, discovered tablespace files are used instead those referenced in the data dictionary, and the data dictionary is updated to reference the relocated files. If duplicate tablespace files are discovered by the scan, startup fails with an error indicating that multiple files were found for the same tablespace ID.