Linux - ServerThis forum is for the discussion of Linux Software used in a server related context.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I'm using CentOS 4.4 (RHEL) and trying to get mysql installed.
I applied 'yum mysql mysql-devel mysql-server'. After that it seems to me that mysql is installed, but not running on my box.
I checked the running processes in 'system-monitor' but mysql is not listed.
when trying to connect to mysql; (with GUI mysql-adminitrator) it shows <Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2)>/
I'm reading now for two days online forums, mysql website and CentOS docu and I have to say I'm getting more and more confused what's to do and what not
I installed mysql before on Win-Xp and on Debian but I havent' had such a hard time as now.
btw. in directory /etc/init.d there is a file mysql.
I hope someone knows some help.
I really would like to get this installation completed to replace Debian.
the service is not been started during boot of the system (system monitor doesn't list mysql).
When I try to start the mysql service (service mysql start) from terminal command line, it shows the message: "mysql: unrecognized service".
Thats were I'm stumbled, what I can see, the service hasn't been started and I not even can start the service manually.
I'm sure I'm missing here one or more steps, but which one's?
My output of 'rpm -qa | grep mysql'. I used 'yum install --enable=centosplus mysql*' to install mysql, I believe you'll get mysql 4.x.x if you dont use the plus repo.
Using the wild card you'll get everthing related to mysql. Except the php-mysql-5.1.6-3.el4s1.5 , but this is just additional yum command.
Look in /usr/share/doc/packages/mysql/. There should be a comprehensive manual, which includes installing and things to do after installing mysql, as well as a trouble shooting chapter. The section on securing mysql is very important. (Why did seeing the 'php' package above remind me of this?)
CentOS should have a gui config program to enable mysql under certain runlevels. Or you could use the chkconfig program to do the same. This assumes that the service control script is present in /etc/init.d/.
Some of the packages like php-mysql and mysql-bench may not be necessary. For example, if you aren't running a LAMP server or don't have php scripts that access the mysql database, then php-mysql isn't needed. It adds mysql support for php and is not a part of mysql proper. The mysql-bench, I presume, is for benchmarking. The mysql-client package is important because it contains the mysql, mysqladmin, mysqldump, etal, client programs.
Look in /usr/share/packages/mysql/. There should be a comprehensive manual, which includes installing and things to do after installing mysql, as well as a trouble shooting chapter. The section on securing mysql is very important. (Why did seeing the 'php' package above remind me of this?)
there is no
Quote:
/usr/share/packages/mysql
.
However, there is </usr/share/mysql>, I guess that's the directory you mean.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.