2012/12/5 Panagiotis Theodoropoulos <[email protected]>

> 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 
> <[email protected]>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
>> [email protected]
>>
>> 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
> <[email protected]>
>



-- 
*Giorgos*
-------------- next part --------------
An HTML attachment was scrubbed...
URL: 
<https://lists.ubuntu.com/archives/ubuntu-gr/attachments/20121205/349b2989/attachment.html>
-- 
Ubuntu-gr mailing list
[email protected]

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

Απαντηση