Monday, February 3, 2014

MySQL Installation on SLES

1. Download MySQL binary from
http://dev.mysql.com/downloads/mysql/

2. Unzip the bunddle
MySQL-client-5.5.36-1.sles11.x86_64.rpm  MySQL-embedded-5.5.36-1.sles11.x86_64.rpm  MySQL-shared-5.5.36-1.sles11.x86_64.rpm         MySQL-test-5.5.36-1.sles11.x86_64.rpm
MySQL-devel-5.5.36-1.sles11.x86_64.rpm   MySQL-server-5.5.36-1.sles11.x86_64.rpm    MySQL-shared-compat-5.5.36-1.sles11.x86_64.rpm
3. Install Server and Client
# zypper install MySQL-server-5.5.36-1.sles11.x86_64.rpm MySQL-client-5.5.36-1.sles11.x86_64.rpm

4. Start up MySQL
# /usr/bin/mysqld_safe &


if you got error as below:
Fatal error: Can't open and lock privilege tables: Table 'mysql.host' doesn't exist

Solution:
# mysql_install_db --user=mysql --ldata=/var/lib/mysql/

No comments:

Post a Comment