Last active
December 16, 2015 15:19
-
-
Save JohnathanMarkSmith/5454931 to your computer and use it in GitHub Desktop.
How to install MySQL on Fedora, CentOS, Red Hat and Scientific Linux
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
If you are using Fedora, CentOS, Red Hat or Scientific Linux I am going to show you the basic install of MySQL using yum. | |
Install MySQL Client and Server software | |
To install MySQL Client and Server enter the following commands: | |
[root@regan ~]# yum groupinstall "MySQL Database server" | |
[root@regan ~]# yum groupinstall "MySQL Database client" | |
To install the MySQL system tables and setup MySQL to start on boot you need to enter the following commands: | |
[root@regan ~]# /usr/bin/mysql_install_db --user=mysql | |
[root@regan ~]# chkconfig --level 2345 mysqld on; service mysqld start | |
To set the admin password for the MySQL databse you need to enter the following commands: | |
[root@regan ~]# /usr/bin/mysqladmin -u root password 'new-password' | |
[root@regan ~]# /usr/bin/mysqladmin -u root -h regan password 'new-password' | |
Now that’s it. have fun with MySQL. | |
If you have any questions or comments please email me at john@johnathanmarksmith.com |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
How to install MySQL on Fedora, CentOS, Red Hat and Scientific Linux