mysql - reload a .sql schema without restarting mysqld -


is possible reload schema file without having restart mysqld? working in 1 db in sea of many , have changes refreshed without doing cold-restart.

when "reload schema file", assume you're referring file has sql statements defining database schema? i.e. creating tables, views, stored procecures, etc.?

the solution simple - keep file sql creates tables, etc. in file, , before create statements, add delete/drop statement remove what's there. when want reload, do:

cat myschemafile.sql | mysql -u userid -p databasename 

Comments

Popular posts from this blog

c++ - How do I get a multi line tooltip in MFC -

asp.net - In javascript how to find the height and width -

c# - DataTable to EnumerableRowCollection -