Thread: MySQL Problem
View Single Post
Old 07-31-2006, 01:10 PM   #2
Shoshana
Senior Member
 
Shoshana's Avatar
 
Join Date: Jul 2006
Location: NY
Posts: 104
Shoshana is on a distinguished road
Send a message via AIM to Shoshana
Default

> Hi,
>>Look in /var/db/mysql/ and look for the error logs.
>>I think they are labeled hostname.err.

>>They should tell you what is wrong.

> Hmmm... The problems started when I deleted the "mysql" database... Now I've
> fixed it....

> I've deleted the database as a regular user, as could anyone else do. Is there
> any way to prevent regular users from deleting those important databases?


a) How did you delete it? rm -r?
b) What do you mean by "regular user"?
If you use rm to delete the directory, then that's a problem that should be
fixed ... MySQL shouldn't install it's data files rw by just any user.
However ... I'm looking at my MySQL install and all the data directories are
rw only by user mysql.

If you logged into mysql and use "drop database" and it succeeded, then you
probably weren't a "regular user". Read the docs on MySQL security, there's
a lot to it.
Shoshana is offline   Reply With Quote