Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Problem solved thanks all, I used parts of all your answers to open the firewall and create a sql user:

firewall-cmd --permanent --add-service=mysql firewall-cmd --reload

login to mysql:

mysql -u root -p (or try just: mysql)

enter password

Create a user and set permissions

CREATE USER 'newuser'@'localhost' IDENTIFIED BY 'password'; GRANT ALL PRIVILEGES ON . TO 'newuser'@'localhost' WITH GRANT OPTION; CREATE USER 'newuser'@'%' IDENTIFIED BY 'password'; GRANT ALL PRIVILEGES ON . TO 'newuser'@'%' WITH GRANT OPTION;