Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
266 views
in Technique[技术] by (71.8m points)

Recover dropped mysql sys schema - Database Administrators Stack Exchange


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)
  1. Go to the folder of the github repo.

  2. Download the sys_schema folder using gitzip or any other available extensions. I personally used gitzip. Needless to say you can download the whole mysql-server repo but that would be inefficient as you do not need everything and it has a heavy download size.

  3. Extract it to a folder and cd into it

  4. Log in to the mysql client

    mysql -u root -p
    
  5. Import the sys_57.sql file. Don't mind the name, it is compatible with mysql 8. using

    source ./sys_57.sql
    

There you go, you have your sys schema back. Thanks to danblack for giving me a cue.

P.S akina this is computer, there is always a way


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

2.1m questions

2.1m answers

60 comments

57.0k users

...