Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I am new to linux platform. can anybody help me in installation of mysql on CentOs. I have downloaded mysql from here, now i want to install it on CentOS, but not getting how to do that. after installation of mysql, how can i use JDBC in CentOs. i hv installed jdk1.6.

Thanx in advance


share|improve this question

migrated from Mar 31 '11 at 8:37

This question came from our site for professional and enthusiast programmers.

yum -y install mysql mysql-server mysql-devel

After this, execute the command mysql_secure_installation.

This will help you to secure your MySQL installation, including mysql root password.

share|improve this answer

CentOS use yum:

search package:yum search package-name

install package:yum install package-name

For your case, you already downloaded the package manually, you can use: rpm -i package-name

share|improve this answer
and mysql server package name is mysql-server. So you need to yum install mysql-server and /etc/init.d/mysqld start to start it. – rvs Mar 31 '11 at 8:59
rvs: thanx for your reply. now can you tell me what settings i have to do for JDBC with mysql. – khushi Mar 31 '11 at 10:03
no additional setting is needed for you to use jdbc -- that's all java related, search ‘java mysql' on google will give you a lot link. – James.Xu Mar 31 '11 at 10:09

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.