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

link|improve this question
Will you be solving it with programming? – Ignacio Vazquez-Abrams Mar 31 '11 at 8:33
Welcome to SO. This is off-topic on SO, and also sounds like something that has already been amply documented on the web: google.com/… I recommend you look into those resources first. – Pekka Mar 31 '11 at 8:33
Your question should probably be asked here: serverfault.com – Fareesh Vijayarangam Mar 31 '11 at 8:34
feedback

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

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

2 Answers

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.

link|improve this answer
feedback

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

link|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
feedback

Your Answer

 
or
required, but never shown

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