cancel
Showing results for 
Search instead for 
Did you mean: 

How can i install MySQL and Apache in different disk on Ubuntu?

How can i install MySQL and Apache in different disk on Ubuntu?

Hello 

 

Could you please tell me how can i install MySQL and Apache in different disk on Ubuntu?

 

Thanks,

Noury

2 REPLIES 2

Re: How can i install MySQL and Apache in different disk on Ubuntu?

@nmicro70gm7302 ,

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! 

Re: How can i install MySQL and Apache in different disk on Ubuntu?

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.