Solved

I changed length/values in DB via PHPMyAdmin and data disappeared

Posted on 2012-04-06
4
375 Views
Last Modified: 2012-04-07
Using PHPMyAdimin I made some changes.
Basically a field called 'comments' wasn't showing all the data on awebpage. It was set to varchar but with no length/values set.
So I put in length/values of 1000 however no extra text was showing up on the webpage.

Then I changed length/values to a value of 5 just to see if it was taking effect on the webpage, it was, only 5 characters showed up.

Now when I changed the value back to a higher number it still only shows 5 characters on the webpage BUT more worrying within the database I can only see 5 characters, the rest of the data in the 'comments' field has disappeared. This doesn't make sense, it's as if the text in the field has been deleted from the database.

How can I restore everything the way it was before I change the value to 5?

(I am using Plesk if this is of any help)
0
Comment
Question by:Cosmic_Cake
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2
4 Comments
 
LVL 83

Accepted Solution

by:
Dave Baldwin earned 500 total points
ID: 37818245
I'm afraid you can't unless you have a backup copy.  When you shortened the field, everything past the five characters was discarded.  Whatever the original size of the field, that was all that it would hold and changing the size to 1000 doesn't bring back the missing characters.
0
 

Author Comment

by:Cosmic_Cake
ID: 37818248
Oh dear. I didn't make any backups. Is it possible there could be automatic backups in place? Is there a way of checking this?
0
 
LVL 83

Expert Comment

by:Dave Baldwin
ID: 37818260
You would have to check your Plesk control panel.
0
 

Author Closing Comment

by:Cosmic_Cake
ID: 37819151
Not the answer I wanted to hear :-) but the REAL answer.
0

Featured Post

Salesforce Has Never Been Easier

Improve and reinforce salesforce training & adoption using WalkMe's digital adoption platform. Start saving on costly employee training by creating fast intuitive Walk-Thrus for Salesforce. Claim your Free Account Now

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Creating a SQLServer BI cube from Oracle data source 4 42
What type of testing am I doing? 4 75
Access PS SQLSERVER from powershell 1 29
invoke-sqlcmd help 5 31
International Data Corporation (IDC) prognosticates that before the current the year gets over disbursing on IT framework products to be sent in cloud environs will be $37.1B.
Recently we ran in to an issue while running some SQL jobs where we were trying to process the cubes.  We got an error saying failure stating 'NT SERVICE\SQLSERVERAGENT does not have access to Analysis Services. So this is a way to automate that wit…
Using examples as well as descriptions, and references to Books Online, show the different Recovery Models available in SQL Server and explain, as well as show how full, differential and transaction log backups are performed
Viewers will learn how to use the INSERT statement to insert data into their tables. It will also introduce the NULL statement, to show them what happens when no value is giving for any given column.

734 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question