LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 03-30-2012, 10:36 AM   #1
linuxandtsm
Member
 
Registered: May 2011
Posts: 194

Rep: Reputation: Disabled
mysql configuration file


Hi all,

Installed mysql on RHEL5 server and unable to find the
config file "my.cnf"

Tried in /etc, /usr, /opt, and /var but no luck.

Where else to look for. (find command returned no results)

Code:
# find /var /opt /usr /tmp -name my.cnf
find: Filesystem loop detected; `/opt/biohub/project/.snapshot' has the same device number and inode as a directory which is 1 level higher in the filesystem hierarchy.
find: Filesystem loop detected; `/opt/biohub/.snapshot/hourly.20' has the same device number and inode as a directory which is 1 level higher in the filesystem hierarchy.
Code:
[root@box ~]# ls -ltrh /etc/ |grep my.cnf
[root@box ~]# echo $?
1
[root@box ~]# ls -ltrh /etc/ |grep cnf
[root@box ~]# echo $?
1
[root@box ~]# ls -ltrh /etc/ |grep mysql
[root@box ~]# echo $?
1
[root@box ~]#
Code:
# mysql -V
mysql  Ver 14.14 Distrib 5.5.22, for Linux (x86_64) using readline 5.1
 
Old 03-30-2012, 10:50 AM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974
How did you install it? If you installed from RPM then you should surely have a decent default there, but if you built it from source then that' would explain why there would be none. In that case there should be a default within the original source for you to modify.
 
Old 03-30-2012, 11:04 AM   #3
linuxandtsm
Member
 
Registered: May 2011
Posts: 194

Original Poster
Rep: Reputation: Disabled
Hi

I installed RPMs but somehow couldn't find the config file.

Code:
rpm -ivh MySQL-server-5.5.22-1.linux2.6.x86_64.rpm MySQL-client-5.5.22-1.linux2.6.x86_64.rpm

and 

rpm -ivh MySQL-devel-5.5.22-1.linux2.6.x86_64.rpm
 
Old 03-30-2012, 02:25 PM   #4
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974
Ah, OK those aren't distro specific ones. Any reason installing via yum wasn't your preferred option? I presume if you do a "rpm -ql MySQL-server" you'll see it in there somewhere.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Is it possible to manufacture a mysql.sock socket file MySQL will like? brianpbarnes Linux - Server 6 04-12-2012 06:01 AM
[SOLVED] MySQL Daemon failed to start - no mysql.sock file jastanle84 Linux - Software 9 10-10-2011 03:54 PM
Mysql help needed: Can't find file: './mysql/host.frm' (errno: 13) rs232 Linux - Software 3 10-26-2010 06:43 AM
Fedora 9:No mysql.sock file found. Cannot start mysql smilingbuddha Linux - Software 3 03-21-2009 04:06 AM
DNS configuration and configuration file in RHEL5 remo1225 Linux - Newbie 1 02-20-2008 05:25 AM


All times are GMT -5. The time now is 06:29 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration