Step 2: Configure MySQL
Run the MySQL secure installation script:
mysql_secure_installationCreate Database and User
Create a database and user for the application:
mysql -u root -pIn the MySQL prompt, run:
CREATE DATABASE ai_education_studio CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;
CREATE USER 'ai_edu_user'@'localhost' IDENTIFIED BY 'your_strong_password_here';
GRANT ALL PRIVILEGES ON ai_education_studio.* TO 'ai_edu_user'@'localhost';
FLUSH PRIVILEGES;
EXIT;Warning: Replace
your_strong_password_herewith a secure password. Save this password — you will need it in the.envfile.
Last updated on