myqsl dummy needs help

Gene Heskett gene.heskett at verizon.net
Tue Feb 17 01:09:28 UTC 2009


On Monday 16 February 2009, Daniel Fazekas wrote:
>On Feb 17, 2009, at 00:32, Gene Heskett wrote:
>>>>> mkdir /var/lib/mysql
>>>>> chown mysql:mysql /var/lib/mysql
>>>>> service mysqld start
>>>>
>>>> I got to here ^^^ and selinux stuck up its hand & waved at me.
>>>> SELinux is preventing mysqld (mysqld_t) "create" to mysql.sock
>>>> (var_lib_t).
>
>That chown step is unnecessary, since that is already done by the
>mysqld init script.
>Instead, add a restorecon in there:
>
>mkdir -p /var/lib/mysql
>restorecon -r /var/lib/mysql
>service mysqld start
>
Ok, then why does the troubleshooter tell me to uses a -v?

All of which is I believe moot at this point, I had yum remove anything mysql 
or related, ran the updatedb util, then located and removed anything it left 
behind.

Then I had yum put it all back in.  The server daemon started just fine and I 
can apparently log into the mysql shell:
[root at coyote mysql]# mysql -u root
Welcome to the MySQL monitor.  Commands end with ; or \g.
Your MySQL connection id is 5
Server version: 5.0.45 Source distribution

Type 'help;' or '\h' for help. Type '\c' to clear the buffer.

mysql> 

I am not going to do anything else now until I have a better handle on how to 
set it up for mythtv.

What fried my grits way too well done was that no one had a clue as to how to 
actually fix it, nobody.  That was the third time I'd had yum recycle the 
install, but the first time I had searched the system and nuked everything 
the removal left behind.  About 30 hours I've been fighting with this.

You aren't the Daniel I expected to answer, but never mind that, thank you.

-- 
Cheers, Gene
"There are four boxes to be used in defense of liberty:
 soap, ballot, jury, and ammo. Please use in that order."
-Ed Howdershelt (Author)
If you steal from one author it's plagiarism; if you steal from
many it's research.
		-- Wilson Mizner




More information about the fedora-selinux-list mailing list