Install MySQL on Ubuntu
Download
wget https://dev.mysql.com/get/mysql-apt-config_0.8.16-1_all.debInstall
sudo dpkg -i mysql-apt-config_0.8.16-1_all.debsudo apt-get updatesudo apt-get install mysql-serverCheck MySQL status
systemctl status mysqlCreate a user
CREATE USER 'my_username'@'%' IDENTIFIED BY 'my_password';Grand all privileges to a user account on all databases
GRANT ALL PRIVILEGES ON *.* TO 'my_username'@'%';重新載入權限表:
FLUSH PRIVILEGES;Last updated
Was this helpful?