Mysql concern. need advice.

Any and all non-support discussions

Moderators: gerski, enjay, williamconley, Op3r, Staydog, gardo, mflorell, MJCoate, mcargile, Kumba, Michael_N

Mysql concern. need advice.

Postby jojo1031 » Sun May 18, 2008 7:49 pm

Hi All,

I chose to install mysql on centos 5.1 using yum install and im using the release 5.0.22 since im having a hardtime installing mysql following the scartchinstall.

Does anyone here tried installing mysql the same way i did?

I also noticed that putting this "### start up the MySQL server
/usr/local/mysql/bin/mysqld_safe --user=mysql --skip-name-resolve --skip-host-cache &" to rc.local, wont start mysql automatically so i did a chkconfig --level 345 mysqld on and it started automatically on boot.

How can i add this line "--skip-name-resolve --skip-host-cache &" since im using chkconfig to start mysql on boot?

Thanks in advance :D

Regards,

Jojo
jojo1031
 
Posts: 47
Joined: Sat Jan 26, 2008 4:23 pm

Postby gardo » Mon May 19, 2008 6:16 am

You need to put those entries in /etc/my.cnf. Should look like this:

[mysqld]
datadir=/var/lib/mysql
socket=/var/lib/mysql/mysql.sock
# Default to using old password format for compatibility with mysql 3.x
# clients (those using the mysqlclient10 compatibility package).
old_passwords=1
skip-name-resolve
skip-host-cache

[mysql.server]
user=mysql
basedir=/var/lib

[mysqld_safe]
log-error=/var/log/mysqld.log
pid-file=/var/run/mysqld/mysqld.pid

Since you're using CentOS as your distro, you can add Mysql to the bootup scripts by issuing this as root:

checkconfig --level 345 --add mysql
http://goautodial.com
Empowering the next generation contact centers
gardo
 
Posts: 1926
Joined: Fri Sep 15, 2006 10:24 am
Location: Manila, 1004

mysql concern

Postby jojo1031 » Wed May 21, 2008 10:31 pm

Hi Gardo,

Which of these two scripts would you prefer? Im using the last one and it seems to be ok.

checkconfig --level 345 --add mysql

or

checkconfig --level 345 mysqld on

Whats the difference between the two?

Regards,

Jojo
jojo1031
 
Posts: 47
Joined: Sat Jan 26, 2008 4:23 pm

Postby gardo » Wed May 21, 2008 10:56 pm

You can use both. The difference is explained by entering "man chkconfig" on the command prompt. :wink:

It's "chkconfig" and not "checkconfig" by the way.
http://goautodial.com
Empowering the next generation contact centers
gardo
 
Posts: 1926
Joined: Fri Sep 15, 2006 10:24 am
Location: Manila, 1004

Postby jojo1031 » Sun May 25, 2008 3:08 am

Got it loud and clear :D

Thanks Gardo for your time.

Regards,

Jojo
jojo1031
 
Posts: 47
Joined: Sat Jan 26, 2008 4:23 pm


Return to General Discussion

Who is online

Users browsing this forum: Bing [Bot] and 33 guests