recomended partitionig gia mysql db @ ubuntu

Giorgos Theofanous gtheofanous at gmail.com
Wed Dec 5 15:16:14 UTC 2012


2012/12/5 Panagiotis Theodoropoulos <tpanagiotis at gmail.com>

> To default directory για τα mysql data είναι /var/lib/mysql.
>
> Μπορείς, αν θέλεις, να τα μεταφέρεις (αντιγράψεις) σε άλλο
> directory/partition.
>
> Δεν με ενδιαφέρει τόσο να τα μεταφέρω (αφού πρόκειται για νέα εγκατάσταση)
αλλά να δημιουργήσω σωστά partitions. Πόσο να δώσω στο /var και πόσο στο
/usr σε ένα δίσκο 120GB για παράδειγμα.



> Η διαδικάσία:
>
> 1) σταματάς τον mysql (sudo service mysql stop)
> 2) Αντιγράφεις (sudo cp)
> 3) Δηλώνεις στο */etc/mysql/my.cnf*  -----> *datadir* = /the new
> directory/
> 4) Διορθώνεις στο */etc/apparmor.d/usr.sbin.mysqld* τις δυο γραμμές με το
> "*/var/lib/mysql*"
> 5) sudo /etc/init.d/apparmor reload
> 6) sudo /etc/init.d/mysql restart
>
> On Wed, Dec 5, 2012 at 4:45 PM, Giorgos Theofanous <gtheofanous at gmail.com>wrote:
>
>> Καλησπέρα,
>>
>> ποιο είναι το προτεινόμενο partitionιnγ για db server (mysql) σε ubuntu
>> server?
>>
>> Τα db files τα βάζει στο /var?
>>
>> Γιώργος
>>
>> --
>> *Giorgos*
>> -------------- next part --------------
>> An HTML attachment was scrubbed...
>> URL: <
>> https://lists.ubuntu.com/archives/ubuntu-gr/attachments/20121205/4b12354e/attachment.html
>> >
>> --
>> Ubuntu-gr mailing list
>> Ubuntu-gr at lists.ubuntu.com
>>
>> If you do not want to receive any more messages from the ubuntu-gr
>> mailing list, please follow this link and choose unsubscribe:
>> https://lists.ubuntu.com/mailman/listinfo/ubuntu-gr
>>
>
>
>
> --
> Παναγιώτης Θεοδωρόπουλος
> Panagiotis Theodoropoulos
> <tpanagiotis at gmail.com>
>



-- 
*Giorgos*
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ubuntu.com/archives/ubuntu-gr/attachments/20121205/349b2989/attachment.html>


More information about the Ubuntu-gr mailing list