Skip to content

Instantly share code, notes, and snippets.

@arjunkori
Created June 23, 2020 15:40
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save arjunkori/18ef107d08fec5adafeff0e0a905039a to your computer and use it in GitHub Desktop.
Save arjunkori/18ef107d08fec5adafeff0e0a905039a to your computer and use it in GitHub Desktop.
yum install mysql-server
chkconfig mysqld on
service mysqld start
Update password on your local MySQL server if you want,
mysqladmin -u root password [your_new_pwd]
mysql -uroot -p
type new pwd
Troubleshooting
mysql> CREATE USER 'monty'@'localhost' IDENTIFIED BY 'some_pass';
mysql> GRANT ALL PRIVILEGES ON *.* TO 'monty'@'localhost'
-> WITH GRANT OPTION;
mysql> CREATE USER 'monty'@'%' IDENTIFIED BY 'some_pass';
mysql> GRANT ALL PRIVILEGES ON *.* TO 'monty'@'%'
-> WITH GRANT OPTION;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment