Could you please tell me how can i install MySQL and Apache in different disk on Ubuntu?
try the following Steps :
stop MySQL service and copy /var/lib/mysql to your different disk
than change datadir into in my.cnf
then restart MySQL service.
I hope it helps!
If you haven't done it before, it is better to watch some videos and get some ideas.
However, first of all, you need to update the system.
Then you will need to perform the MySQL installation and follow the instructions.
Once it has been done, try to open MySQL.