Uninstall MySQL on DirectAdmin server

wdele

Verified User
Joined
Jul 23, 2014
Messages
5
Hi,

Yes, I know there are other topics about them but I don't find them clear so I'm creating my own question.

I have recently moved all my databases to a dedicated MySQL server and I configured DirectAdmin and PHPMyAdmin to work with this. Now I am wondering, is it safe to do a
Code:
yum remove mysql mysql-server
and remove the
Code:
/var/lib/mysql
folder? As the MySQL is on another server I don't use the one on the DirectAdmin server anymore.

Thanks in advance.
 
Hello,

I'd rather stop them without removing. If you want to remove then you'd better limit it to MySQL-server only, as PHP and some other packages need mysql libs.


Note to update /usr/local/directadmin/conf/my.cnf to point directadmin to a remote MySQL server.
 
Thanks for your reply.

Hmmm... I would like a second opinion about that. What you say makes sense but I'm not sure.

Note to update /usr/local/directadmin/conf/my.cnf to point directadmin to a remote MySQL server.

There's no
Code:
my.cnf
file there. But everything is already working :)
 
@AMzEitEr Yeah, I've followed that guide. It's working.
Anyway, I don't need MySQL itself to run php-mysql right?
 
On a server I've got the following (your version might differ of course):

Code:
[root@server ~]# rpm -qa | grep MySQL
MySQL-shared-5.5.38-1.linux2.6.x86_64
MySQL-server-5.5.38-1.linux2.6.x86_64
MySQL-client-5.5.38-1.linux2.6.x86_64
MySQL-devel-5.5.38-1.linux2.6.x86_64

I'd rather say you need all of them except MySQL-server. Please correct me anybody if I'm wrong.

At least I see this picture:

Code:
[root@server ~]#yum whatprovides *libmysqlclient*
...
...
...
MySQL-shared-5.5.38-1.linux2.6.x86_64 : MySQL - Shared libraries
Repo        : installed
Matched from:
Filename    : /usr/lib64/libmysqlclient.so.18.0.0
Filename    : /usr/lib64/libmysqlclient.so
Other       : libmysqlclient.so.18()(64bit)
Filename    : /usr/lib64/libmysqlclient_r.so.18
Filename    : /usr/lib64/libmysqlclient.so.18
Filename    : /usr/lib64/libmysqlclient_r.so.18.0.0
Filename    : /usr/lib64/libmysqlclient_r.so






MySQL-devel-5.5.38-1.linux2.6.x86_64 : MySQL - Development header files and
                                     : libraries
Repo        : installed
Matched from:
Filename    : /usr/lib64/mysql/libmysqlclient_r.a
Filename    : /usr/lib64/mysql/libmysqlclient.a
 
Back
Top