Can't edit table row in phpmyadmin - mysql

I've just had an issue with a client's site they couldn't login to an admin area I built for them. I verified this and went straight into the database via phpmyadmin.
I thought I'd try to edit the admin password and see if something has gone wrong here. I've clicked edit (pencil icon) however I don't get the row to edit I get the following...
Column | Type | Function | Null | Value
and a go button, no edit options, no row data, I click go and get an error:
tbl_replace.php: Missing parameter: goto
I'm guessing there is some kind of database issue going on here. I've tried a Check Table and an Analyze Table, with no results output.
Not really sure what's going on here, I've never come across this before.
Any ideas? Sorry if it's a bit vague I've tried to include as much info as I could as simply as I could.
[UPDATE]
I think I've found the culprit to a few issues on my vps, including database and my clients website etc. I found that my tmp directory is full. Old sessions and misc files not being cleared. This could very well be the cause. I have one file '.cpanel_easy-.bLfpq2ZYoTbdcY_c' that I can't identify that is taking up a whole lot of space, if I knew what this was I could possibly fix my issue.

I can confirm that the issue I was having was caused by the tmp directory on my VPS being full. It was filled with old temporary install files and a bunch of sessions (hundreds) and other miscellaneous files mainly from software updates but a whole bunch from various Wordpress installations, I'm guessing plugins with some messy coding that don't clean up after themselves.
Thanks to those that helped out.

Related

Unable to create a new project in Web2Project

I recently downloaded Web2Project after going through the reviews. Installation was a breeze and the application is neatly aligned. I was able to create the users, assign permissions, create companies etc.
However when I am trying to create a project , despite filling all the fields in the screen the page just refreshes back without giving any error message or creating a project.
I am looking to see if there is a way to troubleshoot what is going on with the page. I tried exploring to create an account in Web2Project support forums but not able to create an account through the available media and hence seeking technical assistance through Stackoverflow.
Web2Project New Installation
Web2Project Code (Just installed on WAMP Server) -- Projects Module
After filling all the fields in the Project Screen, the project should be created.
But the screen just refreshes without creating the project. No errors shown. When I go to Project List page nothing is created.
I was facing same problem. Took a lot of work until realized that the cause was the field PROJECT_ID of the table PROJECTS was not created with the auto increment definition. I just seted up this property and the problem was solved.
How did i discover the cause of the problem? In the SYSTEM ADMIN module, access the SYSTEM CONFIGURATION page, and then set the value of the field DEBUG LEVEL to 1, and check the field SHOW DEBUG MESSAGES. This will allow the web2project to log into C:\Windows\Temp\PHP72x64_errors.log (in case of my instalation) the error.
Good luck!
I'm facing the same problem and took a lot time to solved until I came here.
Goto the table project immediately, found no auto_increment in project_id field. Put it on, it worked!
And hoping current web2Project maintainer will fix this in their installer.
Thank you!

MySQL Error #1146 can't get rid of deleted tables

I know #1146 has been asked too many times, but my case is a bit different, so please bear with me.
I was trying to delete a database "libdb_bak" as I no longer need the backup db, however, some error happened and PHPMyadmin asked me to create something related to "pma" thing - I didn't paid attention to the details, and after confirming the operation, I go on to my other tasks.
After returning to PHPMyAdmin, the operation seems failed, so I go to C:\AppServ\MySQL\data\ to delete the database manually, now every time I tried to go into any database, it will fail with error message regarding "libdb_bak.pma_tracking" doesn't exists.
I tried uninstalling AppServ (AppServ: 8.6.0 includes MySQL:5.7.17, PHPMyAdmin: 4.6.6) and deleted the whole AppServ directory (clean delete, nothing left in Recycle Bin), restart PC, re-install AppServ, and the problem still exists - it is still looking for the libdb_bak.pma_tracking file, which, it is not supposed to remember, since I already done a clean wipe and fresh re-install.
Can anyone help me to locate the residue of this file location memory, so that I can get rid of it for good? I can't use my PC to continue my work, as long as this problem still exists. Thanks in advance.
Have you tried this one: #1146 - Table 'phpmyadmin.pma_recent' doesn't exist
Btw, Have you tried creating table "libdb_bak" from the terminal or Work Bench/Heidisql etc? And see if recreating the data files solves the issue.
Solved the problem, the culprit is the cookies! Cleared my browser history for the last few hours and the problem goes away.
Thanks to Batman's answer, recreating db with the same error leads me to investigate other options and found the solution! Thanks.

MySql databases corrupted after upgrade?

I have been dealing with this issue for a while now. For some reason, when i went to run a Ubuntu upgrade, MySql-server upgrade failed. This was on about 8/10. This had happened before due to a "DATADIR" link (won't go into detail on that just now). I went through hell trying to get the package to upgrade and eventually got the package to upgrade by creating a new MySql database structure (after moving mine somewhere else). Once I did that (with some steps involved) the package upgrade completed.
Then, when I tried to replace the "new" databases with my old onse, it wouldn't start the service. I came to find out that the "Mmysql" (system) database folder was just completely gone.
So, I took the "new" database and overlayed it on my "old" database files. This got me in! Of course, old users, and anything else in the system database, was gone. So I started to rebuild them.
The problem occurred when i tried to go into some old databases. About half of them report that the table does not exist when trying to load them. Mostly, it is all of the tables in particular database, but there are a few databases where some tables "don't exist" and others do.
The thing is that the tables do exist. I believe they are simply corrupt.
So, I'm really trying here, but I can't seem to figure out how to get all of the tables to load. I have a backup from the 13th, presumably after the upgrade failed but before I really started messing with things. I'm going to try to use that, but if anyone knows how/why some tables are corrupted all of a sudden and why others are not and especially if someone knows how to fix this, that would be absolutely wonderful.
Unfortunately, my regular backups haven't been working for months, and the latest backup I currently have access to is 2 years old. Quite a bit has changed in the database since then, but as a last ditch effort, I may try to import that data and use "mysql_upgrade" to restore this, then overlay any new databases I have created since then into the directory structure and see if they import that way.
Thanks for any suggestions you may offer.
--mobrien
I believe this was due to a permissions issue that had some files locked and when I fixed the perm issue, the tables that were accessible were corrupted. I restored the same backup again and this time it worked. The only folder that was missing was the "mysql" folder, and for that I recreated a new one, then patched it in, then created new user permissions for the existing tables. This was working, but then I ran into another issue, so I will open a new questions for that. This has been a nightmare and the moral of the story is: keep better backups and test them!

Site compromised: ZMEU attack

My site has been compromised with ZmEu attacks. In the logs I find suspicious user agents named - ZmEu.
The site returns 500 internal server error. There are no related error logs in the apache error log.
There are several dummy files all over in my server. I removed all of them.
But still the site is down.
What is the main target for such attacks?(What files are modified and how do I get them back?)
Where should I look to fix the issues?
If anyone has undergone such situation please give your advise.
update: Its wordpress site which is not working. There are other apps in sub directories which are working fine.
Thanks in advance,
You restore from a backup in this situation.
It will be tough to sort through and reverse everything 100%. The hacker could have even changed the modification times on the files, so you'll never be able to tell what has been accessed or not, without combing through every line.

Access DB corruption issue, can't find info on similar issue anywhere

I am currently working at a large company on a school placement. The group I am working in supports a fairly complex Access DB which houses a myriad of data, and has 40+ forms. We have been running into a problem that no one (not even the vets) can figure out. I've been asked to search the internet for any info, but can't even find anyone that has even had a similar issue.
Here is the problem:
A bit ago (read: before I got here), the company did an upgrade from Access 03 to 07. Everything was fine. My first task when I arrived was to insert a snippet of code to record which user was making modifications to different DBs (because of the removal of the mdw). This went fine, and we threw the whole thing into production.
A few days later, we received our first phone call, "Help! I keep getting an error, and can't access the db!" The error was 'The VBA modules in this db appear to have been saved with errors, etc, etc'. We obviously had corruption issues. Funny thing is, when we went into the code for the forms, it was all gone, save for "Option compare DB" at the top of every form. So we had 40+ forms that all said that, and nothing else.
We promply re-upped a backup, no big deal.
Two days later, same thing. Re-up the backup.
This happend a few more times. Not just the same user on the same machine. However, didn't happen to me, or to my mentor.
Then we thought maybe the issue was the way we imported the forms with the new code, so we installed the backup, and copied the forms over one by one.
Next day, same issue.
By this point, we thought that it must be the five lines of code we had added (who knows why), so we just ran with the old backup, no changes.
It's been about two weeks now, no issues. Until this morning. One particular user had this happen four times yesterday (not to any one else).
Anyone ever heard of such a thing? What could possibly be the problem? I'm sure there are a wide variety of possibilities, and I am sure I haven't given enough info to narrow it down much, but I don't know what else to write (never worked with a large Access app before).
I'm obviously stumped, but so are all the clever vets I work with.
EDIT**
For clarity: All of the forms are perfectly fine in terms of their view. I can open them, and they look absolutely normal, just no back end code....
Each user should have their own front end, vanishing code is a corruption issue and you are losing all the advantages of a split database if the users do not each have their own front end. you can get additional protection from compiling the front-end into an accde or mde file.
The usual argument against each individual having their own copy is that it is difficult for developers to keep the various copies in synch, but there are several solutions for automatically rolling out updates to users, for example, this one by Tony Toews: http://autofeupdater.com/