646.574.9521
Select Page

 

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 MySQL system tables and Setup MySQL to start on boot

 

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

 

 

### Set Admin Password

 

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.