When I hit the command yum remove mysql
I get the following error:
Loaded plugins: fastestmirror
Setting up Remove Process
No Match for argument: mysql
Error: File contains no section headers.
file: file:///etc/yum.repos.d/mysql-community-source.repo, line: 1
'mysql-connectors-community-source]\n'
I then proceed to yum list installed | grep mysql
after wich I get:
mysql-community-common.x86_64
5.7.9-1.el6 @mysql57-community
mysql-community-libs.x86_64
5.7.9-1.el6 @mysql57-community
mysql-community-libs-compat.x86_64
5.7.9-1.el6 @mysql57-community
mysql57-community-release.noarch
el6-7 @/mysql57-community-release-el6-7.noarch
When I try to individually remove these with the command yum remove mysql-community-common.x86_64
, I get:
How do I get rid of this error?
File contains no section headers.
file: file:///etc/yum.repos.d/mysql-community-source.repo, line: 1
'mysql-connectors-community-source]\n'
I even deleted the yum.repos for mysql but it didnt help, and because I didnt save it I had to recreate them from another virtual machine and copy pasted them....
The hole point of this is so I can install a fresh installation of mysql but I cant because of the dependencies...
EDIT1This is what I just tried and it failed as you can see:
[root@centos ~]# yum autoremove mysql
Loaded plugins: fastestmirror
No such command: autoremove. Please use /usr/bin/yum --help
[root@centos ~]# yum install autoremove
Loaded plugins: fastestmirror
Setting up Install Process
Error: File contains no section headers.
file: file:///etc/yum.repos.d/mysql-community-source.repo, line: 1
'mysql-connectors-community-source]\n'
[root@centos ~]#