Selecting a database in mysql with spaces in its name
You have two options.
1 Enclose the database name in backticks or single quotes.
USE `student registration`;USE 'student registration';
2 Escape the white space character.
USE student\ registration;
Oddly enough this produces.
ERROR: Unknown command '\ '.
But still changes the database.