Quantcast
Channel: MySQL Forums - InnoDB
Viewing all articles
Browse latest Browse all 1954

CentOS / my.cnf (2 replies)

$
0
0
I just built a CentOS database server and moved the MySQL data folder to a software raid array. The my.cnf file reflects the change in database folder and socket in the [mysqld] section. I can not connect to the server - it appears to be trying to use the default socket (/var/lib/mysql/mysql.sock). If I add the new socket information to the [client] section of my.cnf I can connect to the server. I am not sure if this is the expected behavior.

With the my.cnf file below:

When I boot the server up I have the same problem connecting and once again it appears to be using the default socket. If I stop the mysql server and start it the problem goes away.

my.cnf:

[client]

user=root
password=xxxxxxx
socket=/MySQLdata/mysql/mysql.sock

[mysqld]
datadir=/MySQLdata/mysql
socket=/MySQLdata/mysql/mysql.sock
#datadir=/var/lib/mysql
#socket=/var/lib/mysql/mysql.sock
user=mysql
# Disabling symbolic-links is recommended to prevent assorted security risks
symbolic-links=0
default-storage-engine=INNODB

Also....

I verified the mysql server is configured with partitioning and 1 file per table enabled (this is my first experience with CentOS). What should I expect to see in the folder which contains the data for this table. I am expecting to see one .ibd file per partition which I do not see?

mysql data folder:
rwx------. 2 mysql mysql 4096 Oct 24 09:06 flash
-rw-rw----. 1 mysql mysql 1486880768 Oct 24 11:30 ibdata1
-rw-rw----. 1 mysql mysql 5242880 Oct 24 13:10 ib_logfile0
-rw-rw----. 1 mysql mysql 5242880 Oct 24 09:06 ib_logfile1
drwx------. 2 mysql mysql 4096 Oct 23 11:14 mysql
srwxrwxrwx. 1 mysql mysql 0 Oct 24 13:10 mysql.sock
drwx------. 2 mysql mysql 4096 Oct 23 11:13 test

folder for the database containing 2 partitoned tables (raw and detail):
-rw-rw----. 1 mysql mysql 8978 Oct 23 12:45 cass_sum.frm
-rw-rw----. 1 mysql mysql 65 Oct 23 12:36 db.opt
-rw-rw----. 1 mysql mysql 9046 Oct 23 12:45 defect.frm
-rw-rw----. 1 mysql mysql 56562 Oct 23 12:45 detail.frm
-rw-rw----. 1 mysql mysql 4296 Oct 23 12:45 detail.par
-rw-rw----. 1 mysql mysql 8750 Oct 23 12:45 dim.frm
-rw-rw----. 1 mysql mysql 8996 Oct 23 12:45 disk.frm
-rw-rw----. 1 mysql mysql 8922 Oct 23 12:45 ea.frm
-rw-rw----. 1 mysql mysql 56562 Oct 23 12:37 raw.frm
-rw-rw----. 1 mysql mysql 4296 Oct 23 12:37 raw.par
-rw-rw----. 1 mysql mysql 8996 Oct 23 12:46 surface.frm

Viewing all articles
Browse latest Browse all 1954

Trending Articles