Install MySQL 5.5.25a on Fedora 17/16, CentOS/Red Hat (RHEL) 6.3/5.8
Note: If you are upgrading MySQL (from earlier version), then make sure that you backup (dump and copy) your database and configs. And remember run mysql_upgradecommand.
Install MySQL Database 5.5.25a on Fedora 17/16/15/14/13/12, CentOS 6.3/5.8, Red Hat (RHEL) 6.3/5.8
1. Change root user
2. Install Remi repository
Fedora
CentOS and Red Hat (RHEL)
3. Check Available MySQL versions
Fedora 17, 16, 15, 14, 13, 12
CentOS 6.3/6.2/6.1/6/5.8 and Red Hat (RHEL) 6.3/6.2/6.1/6/5.8
Output:
4. Update or Install MySQL 5.5.25a
Fedora 17, 16, 15, 14, 13, 12
CentOS 6.3/6.2/6.1/6/5.8 and Red Hat (RHEL) 6.3/6.2/6.1/6/5.8
5. Start MySQL server and autostart MySQL on boot
Fedora 17/16
Fedora 15/14/13/12/11, CentOS 6.3/6.2/6.1/6/5.8 and Red Hat (RHEL) 6.3/6.2/6.1/6/5.8
6. MySQL Secure Installation
- Set (Change) root password
- Remove anonymous users
- Disallow root login remotely
- Remove test database and access to it
- Reload privilege tables
Start MySQL Secure Installation with following command
Output:
Note: If you don’t want some reason, do a “MySQL Secure Installation” then at least it’s very important to change the root user’s password
7. Connect to MySQL database (localhost) with password
8. Create Database, Create MySQL User and Enable Remote Connections to MySQL Database
This example uses following parameters:
- DB_NAME = webdb
- USER_NAME = webdb_user
- REMOTE_IP = 10.0.15.25
- PASSWORD = password123
- PERMISSIONS = ALL
0 comments:
Post a Comment