February 23rd, 2023
MySQL hosts allow from other IP

By MySQL is accessible to the localhost only.

If we want our MySQL to be accessible from other hosts, we need to grant those accesses.

				
					> mysql -u root -p
> password:somewordpress

GRANT ALL PRIVILEGES ON *.* TO 'root'@'localhost' identified by 'wordpress';
UPDATE mysql.user SET host='%' WHERE user='root';

grant all privileges on *.* to 'docker'@'%' with grant option;
				
			

WordPress access

Soundarya122/Tarang@243

Leave a Reply

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