Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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

Khushi

share|improve this question

migrated from stackoverflow.com Mar 31 '11 at 8:37

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

2 Answers 2

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

 
discard

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.