简体   繁体   中英

I can't drop my database or alter my tables in MySQL

Something weird just happened, I have a database and I dropped the whole DB once since it was practically messy, afterwards, I created it again and managed to find more errors so I dropped it again but this time, the query went on for so long, I had to interrupt it. But every time I interrupt it, Workbench crashes instantly. Afterwhich, I tried altering tables instead but it does the same thing now. What should I do?

Update: I can't drop tables as well now. I think anything related to schema changes makes it hang and load forever. Update: Apparently, I can still perform other normal database operations on other databases just no the one I'm working on though. Any ideas?

You probably messed up your schema entirely. Schemas/dbs in MySQL are just folders in the data directory. So try removing the folder with the corrupt db (move to a place outside the data folder) and see if things go back to normal.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM