MySQL Database

Hello Exports,
In the past few weeks, every few days my WordPress MySQL database get empty for some odd reason, what I mean is that I get notification that my site is down, when I check what is going on I find that the MySQL database is completly empty, no tables no errors in the logs nothing. I can get the site up and running very fast by restoring the data dump and restart the MySQL service, but this is not a long term solution. The only error I can find from time to time is that the Prvilage.host table cound not be found? I see this error in the even logs.
Here is a few things I already try:
1. Re-install MySQL and wordpress, down this twice once on the old server and one on the new server.
2. Re-build the database and the site.
3. Run Mysql_update, run mysql_db
4. Repair installation several time.
Nothing really helps after  afew days it happen again.
I am corrently running MySQL on the some server, Windows 2008 R2, 64 bit.
MySQL verion is 5.1.56 if i remember correctlly, WOrd Pres is version 3.0.1
Anything I can do to resolve this issue? Can I use wordpress with MS SQL? if yes how?
Thank you
Roy
rfinalyAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

KalpanCommented:
you would need to privilege your mysql user for the wordpress database to be accessible using the root mysql user

please refer the following

http://dev.mysql.com/doc/refman/5.1/en/grant.html

Thanks

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Dave BaldwinFixer of ProblemsCommented:
When you install MySQL, do you give 'root' a password and do you remove the anonymous user as recommended?  You should remove all users that have no passwords.  On Windows, there is one and sometimes on Unix there may be more.  http://dev.mysql.com/doc/refman/5.1/en/default-privileges.html
rfinalyAuthor Commented:
Kalmax: I use the MySQL Workbanch to assign the permissions, I am assuming it does the something? as the article you sent me.
Dave: Yes I assign a password and removed the anonymous account, however after the database is gone and the table is empty, when I go to the securty section under MySQL WorkBanck I do see the anonymous account and I cannot use MySQL until I remove it.

Also, do you think there is something in side the tables that might corrupt the database?
Thank you
Roy
IT Pros Agree: AI and Machine Learning Key

We’d all like to think our company’s data is well protected, but when you ask IT professionals they admit the data probably is not as safe as it could be.

Dave BaldwinFixer of ProblemsCommented:
It sounds to me like someone is breaking into your server and possibly re-installing MySQL.
rfinalyAuthor Commented:
OK, So can I found from MySQL logs or other logs if realy a re-install took place?
Roy
Dave BaldwinFixer of ProblemsCommented:
Maybe the server logs, I think the MySQL logs may get overwritten but I'm not sure.  Click on "Request Attention" and get the Microsoft Server zones added to your question.  Someone there should know where to look.
rfinalyAuthor Commented:
Guys,
I gave the point for both of you, even the solution was completly differente. But thank you for all the help.
Dave BaldwinFixer of ProblemsCommented:
Thanks for the points but you really should post your solution.  If nothing else so we would know why we didn't help you.
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
MySQL Server

From novice to tech pro — start learning today.