WebmasterForums.NET - Webmaster Forums & Directory
 

Go Back   WebmasterForums.NET - Webmaster Forums & Directory > Design and Development > Database - Mysql, SQL and Others
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

Database - Mysql, SQL and Others MySQL, MSSQL, PGSQL, ms access and other database discussions.

Reply
 
Thread Tools Display Modes
Old 07-31-2006, 01:09 PM   #1
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 MySQL Problem

Hi,
I had MySQL working perfectly yesterday, but when I logged on today and tried
to use it, it just didn't worked. I tried to find it with `ps waux | grep
mysqld`, but got nothing.

Then I tried to start it manually:

konrad@localhost /home/konrad # /usr/local/etc/rc.d/mysql-server.sh start
mysqldkonrad@localhost /home/konrad #

But the server didn't really started, so again I got nothing from `ps waux |
grep mysqld`. I also tried to stop it:

konrad@localhost /home/konrad # /usr/local/etc/rc.d/mysql-server.sh stop
mysql-server isn't running
konrad@localhost /home/konrad #

What could be wrong? Thank you!
Shoshana is offline   Reply With Quote
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
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT. The time now is 09:56 PM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 2.4.0
WebmasterForums.NET - Webmaster Forums & Directory