Yaptığım herşeyi yeniden yapıyorum;

mkdir /mnt/raid1-hd/mysql
chown mysql:mysql  /mnt/raid1-hd/mysql
[root@xyz Desktop]# ls -ld /mnt/raid1-hd/mysql
drwxr-xr-x 2 mysql mysql 4096 Dec 16 16:15 /mnt/raid1-hd/mysql

/etc/selinux/config;
# This file controls the state of SELinux on the system.
# SELINUX= can take one of these three values:
#     enforcing - SELinux security policy is enforced.
#     permissive - SELinux prints warnings instead of enforcing.
#     disabled - No SELinux policy is loaded.
SELINUX=disabled
# SELINUXTYPE= can take one of these two values:
#     targeted - Targeted processes are protected,
#     mls - Multi Level Security protection.
SELINUXTYPE=targeted

[root@xyz ~]# setenforce 0
setenforce: SELinux is disabled

/etc/my.cnf;
[mysqld]
datadir = /mnt/raid1-hd/mysql
socket = /var/lib/mysql/mysql.sock
user=mysql

[root@xyz ~]# ll /mnt/raid1-hd/mysql/
total 20492
-rw-rw---- 1 mysql mysql 10485760 Dec 16 16:24 ibdata1
-rw-rw---- 1 mysql mysql  5242880 Dec 16 16:24 ib_logfile0
-rw-rw---- 1 mysql mysql  5242880 Dec 16 16:24 ib_logfile1
drwx------ 2 mysql mysql     4096 Dec 16 16:30 kgc      ===> Bu db yi yeni 
oluşturdum.
drwx------ 2 mysql mysql     4096 Dec 16 16:24 mysql
drwx------ 2 mysql mysql     4096 Dec 16 16:24 test



/var/log/mysqld.log ;

111216 15:09:12 mysqld_safe mysqld from pid file /var/run/mysqld/mysqld.pid 
ended
111216 16:24:06 mysqld_safe Starting mysqld daemon with databases from 
/mnt/raid1-hd/mysql
InnoDB: The first specified data file ./ibdata1 did not exist:
InnoDB: a new database to be created!
111216 16:24:06  InnoDB: Setting file ./ibdata1 size to 10 MB
InnoDB: Database physically writes the file full: wait...
111216 16:24:06  InnoDB: Log file ./ib_logfile0 did not exist: new to be created
InnoDB: Setting log file ./ib_logfile0 size to 5 MB
InnoDB: Database physically writes the file full: wait...
111216 16:24:06  InnoDB: Log file ./ib_logfile1 did not exist: new to be created
InnoDB: Setting log file ./ib_logfile1 size to 5 MB
InnoDB: Database physically writes the file full: wait...
InnoDB: Doublewrite buffer not found: creating new
InnoDB: Doublewrite buffer created
InnoDB: Creating foreign key constraint system tables
InnoDB: Foreign key constraint system tables created
InnoDB: Creating foreign key constraint system tables
InnoDB: Foreign key constraint system tables created
111216 16:24:07  InnoDB: Started; log sequence number 0 0
111216 16:24:07 [Note] Event Scheduler: Loaded 0 events
111216 16:24:07 [Note] /usr/libexec/mysqld: ready for connections.
Version: '5.1.52'  socket: '/var/lib/mysql/mysql.sock'  port: 3306  Source 
distribution


Evet, aslında bunların hepsini daha önceki confg. dada yapmıştım fakat hata 
veriyordu. Fakat bu sefer yapmadığım şey ise /var/lib/mysql  klasörünü  
/mnt/raid1-hd/mysql/ klasörüne kopyalamak oldu. Bu klasör ve alt dizin/dosya 
kopyalamama rağmen MySQL start ettiğimde /etc/my.cnf içindeki datadir 
değişkenine atadığım yolda kendisi sıfırdan oluşturdu. Fakat eski dosyalar hala 
duruyor. Kopyalam yapmış, taşımamış.

[root@xyz ~]# ll /var/lib/mysql/
total 20488
-rw-rw----. 1 mysql mysql 10485760 Dec 16 14:22 ibdata1
-rw-rw----. 1 mysql mysql  5242880 Dec 16 14:22 ib_logfile0
-rw-rw----. 1 mysql mysql  5242880 Dec 16 10:04 ib_logfile1
drwx------. 2 mysql mysql     4096 Dec 16 10:04 mysql
srwxrwxrwx  1 mysql mysql        0 Dec 16 16:24 mysql.sock
drwx------. 2 mysql mysql     4096 Dec 16 10:04 t


Tekrar herkeze çok teşekkürler/saygılar, MySQL şuan çalışıyor görünüyor.


________________________________________
Kimden: [email protected] 
[[email protected]], Doruk Fisek 
[[email protected]] Adına
Tarih: 16 Aralık 2011 Cuma 16:11
Kime: [email protected]
Konu: [Linux-sunucu] Re: YNT:  Re: MySQL

Merhaba,

Fri, 16 Dec 2011 16:07:33 +0200, Kasım Gökhan Coşkun
<[email protected]> :

> 111216 11:05:13 [Warning] Can't create test
> file /mnt/raid1-hd/db/xyz.lower-test
Yeni verdiğiniz datadir'e MySQL yazamıyor gözüküyor.

Dizine mysql kullanıcısının sahipliğine geçirmeyi deneyin.

                   Doruk

--
Özgür Yazılım A.Ş. ~ #
http://www.ozguryazilim.com.tr
_______________________________________________
Linux-sunucu E-Posta Listesi
[email protected]

Liste kurallarını http://liste.linux.org.tr/kurallar.php  bağlantısından 
okuyabilirsiniz;

Bu Listede neden bulunduğunuzu bilmiyorsanız veya artık bu listeden gelen 
e-postaları almak istemiyorsanız aşağıdaki bağlantı adresini kullanarak 1 
dakika içinde üyeliğinizi sonlandırabilirsiniz.
https://liste.linux.org.tr/mailman/listinfo/linux-sunucu

GİZLİLİK NOTU: Bu mesaj ve ekleri yalnızca gönderildiği kişi(lere) özeldir ve 
gizlidir. Mesaj sizin adınıza değilse, içeriğini ve varsa ekindeki dosyaları 
kimseye göndermeyiniz ya da kopyalamayınız. Bu mesajın herhangi bir şekilde 
açıklanması, kullanılması, kopyalanması, yayılması veya mesaj içeriği ile 
ilgili olarak herhangi bir işlem yapılması kesinlikle yasaktır. Böyle bir 
durumda lütfen göndereni uyarıp, mesajı siliniz. İstanbul Ulaşım San. ve Tic. 
A.Ş. bu mesajın içeriği ve ekleri ile ilgili olarak hiçbir hukuksal sorumluluğu 
kabul etmez.
CONFIDENTIALITY NOTICE: This message and attachments are confidential and 
intended solely for the individual(s) stated in this message. If you received 
this message although you are not the addressee, you are responsible to keep 
the message confidential. If you are not the intended recipient please notify 
the sender immediately and destroy this e-mail. İstanbul Ulaşım San. ve Tic. 
A.Ş. does not accept legal responsibility for the contents and the attacments 
of this message.
_______________________________________________
Linux-sunucu E-Posta Listesi
[email protected]

Liste kurallarını http://liste.linux.org.tr/kurallar.php  bağlantısından 
okuyabilirsiniz;

Bu Listede neden bulunduğunuzu bilmiyorsanız veya artık bu listeden gelen 
e-postaları almak istemiyorsanız aşağıdaki bağlantı adresini kullanarak 1 
dakika içinde üyeliğinizi sonlandırabilirsiniz.
https://liste.linux.org.tr/mailman/listinfo/linux-sunucu

Cevap