Wed. Jun 25th, 2025

Granting access to MySQL DB using code

-- Create user if not already created
CREATE USER 'mfuser'@'%' IDENTIFIED BY 'your_password';

-- Grant privileges on mfdata database
GRANT ALL PRIVILEGES ON mfdata.* TO 'mfuser'@'%';

-- Apply changes
FLUSH PRIVILEGES;

By jovaan

Leave a Reply

Your email address will not be published. Required fields are marked *