Click here to Skip to main content
15,920,438 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi
I have an issue like i have one column in my mysql table which is having datatype float(9,3) then i changed datatype length like float(30,30). Then i got one error like Data truncated at column ..later i changed back to float(9,3). All my values in that column is changed to 00001 instead of original decimal values.Is there any way to get my original data.Please help me

Thanks
Posted
Comments
Andy Lanng 29-Oct-15 6:17am    
do you have backups :?
priyadarshini tv 29-Oct-15 7:23am    
yes i have, but it is master slave replication.so when master is updated slave will also update.Other than that i dont have any backups
Andy Lanng 29-Oct-15 7:38am    
well, you have lost precision and so lost the original value in the current table structure. There is no way to get precision back once it has been lost :S
Philippe Mori 29-Oct-15 12:46pm    
When you are not sure of the result of an operation always try it on a copy of the real database so you would hopefully never have such problems.
priyadarshini tv 30-Oct-15 2:33am    
Binary logging is enabled in my database.Can i recover data from that?.If so how it is? I googled that but didnt get a workable answer

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900