How to create mysql user with CREATE USER grant but without access to new databases?
With the GRANT command, you can use the ON keyword to set table privileges for users.

For example: GRANT ALL ON user_db to 'write_user'@'localhost'