skip to Main Content

On Monday I messed up with a database.

We have an application running on a VPS, using cPanel and phpmyadmin, and I informed the developers I will be doing some queries on the DB to extract information.

So, I did a few large queries using the “Visual Builder” query tool and the web-application got stuck. The queries weren’t loading and even refreshing the page did not work. The website wasn’t loading and users couldn’t log in. So I used WHM to log in as root and kill the queries manually. After I did this, the system was still not running.

Then, the database completely freaked out and I got these error messages:

enter image description here

After doing this, the DB somehow fixed itself and the web application was working again. However, we saw that we could not update some jobs or add new jobs in the system. If you pressed the “SAVE” button on a job, the system just gave an “undefined” message.

The developers had a look and discovered this was causing the issue:

[enter image description here
The devs went ahead and added the definer and the issue was resolved. The blacked out “user”@1.0.0.0” is the actual cPanel account username.

However, this did not last as yesterday evening the exact same situation was occurring. The web-application was running fine on Tuesday and most of Wednesday, then all of a sudden users couldn’t update their jobs again which means the definer user was removed once again even though nobody did anything in the database.

Has anyone encountered this issue before? I read this thread on the topic and even though what they say makes sense, I believe the developers did this but the error still occurred.

When I log into phpmyadmin via cPanel, I get a weird user called “[email protected]”. Does this perhaps have something to do with this error? I believe before the server went crazy, this user was only the name of the cPanel account (for example: “[email protected]”.

2

Answers


  1. Chosen as BEST ANSWER

    SOLVED

    I managed to solve this by changing MySQL database password and cPanel account password.

    I read one post by someone saying that there was a session file which perhaps stored an old session and that changing passwords could resolve this. Luckily it did, have not had the error 1449 appearing for 5 days now.


  2. To summarize your post, what I’m seeing is that you have a MySQL user, the user disappeared, you recreated the user, and it went away again.

    There must be some external factor here. Someone could have access to your database and is deleting the user maliciously or out of misunderstanding, there could be a scheduled job, or it could be something to do with your web host.

    I’d start by auditing the database accounts, and restricting access as much as possible. Check any interface that’s exposed to the web, such as WordPress, Joomla, or other applications.

    You should enable logging, there are several degrees of logging that MySQL can allow. I think the most useful for you would be the audit log, although honestly I’ve never used that specifically. You’d enable that to log future events. The binary log may contain record of what has already occurred.

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search