Skip to content

Instantly share code, notes, and snippets.

@JohnathanMarkSmith
Last active December 16, 2015 15:19
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 JohnathanMarkSmith/5454931 to your computer and use it in GitHub Desktop.
Save JohnathanMarkSmith/5454931 to your computer and use it in GitHub Desktop.
How to install MySQL on Fedora, CentOS, Red Hat and Scientific Linux
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
@JohnathanMarkSmith
Copy link
Author

How to install MySQL on Fedora, CentOS, Red Hat and Scientific Linux

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment