Install mysql enterprise database on Enterprise Linux

Installed the mysql using oracle e-delivery package

shell> unzip -t V33087-01.zip
Archive:  V33087-01.zip
    testing: MySQL-devel-advanced-5.5.25-1.rhel5.x86_64.rpm   OK
    testing: MySQL-test-advanced-5.5.25-1.rhel5.x86_64.rpm   OK
    testing: MySQL-embedded-advanced-5.5.25-1.rhel5.x86_64.rpm   OK
    testing: MySQL-client-advanced-5.5.25-1.rhel5.x86_64.rpm   OK
    testing: MySQL-shared-compat-advanced-5.5.25-1.rhel5.x86_64.rpm   OK
    testing: MySQL-shared-advanced-5.5.25-1.rhel5.x86_64.rpm   OK
    testing: MySQL-server-advanced-5.5.25-1.rhel5.x86_64.rpm   OK
    testing: README.txt               OK
No errors detected in compressed data of V33087-01.zip.

shell> rpm -ivh MySQL-server-advanced-5.5.25-1.rhel5.x86_64.rpm
OK

shell> rpm -ivh  MySQL-client-advanced-5.5.25-1.rhel5.x86_64.rpm
OK

shell>  /etc/init.d/mysql start
OK

shell> mysql
ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: NO)

SOLUTION
=========

shell>  /etc/init.d/mysql stop
OK

shell>  /etc/init.d/mysql start --skip-grant-tables
OK

shell> mysql -u root mysql

mysql> UPDATE user SET Password=PASSWORD('your_new_password') where USER='root';
mysql> FLUSH PRIVILEGES;
mysql> exit


shell>  /etc/init.d/mysql restart --skip-grant-tables

OK

shell> mysql -u root -p
Enter password: your_new_password

mysql> yeppyyy!!!

P.S - For production environment it is advisable to drop sample schemas and Anonymous user
        to accomplish this run the command
        /usr/bin/mysql_secure_installation

:)






Comments

Popular posts from this blog

Installation of MySQL Enterprise Monitor Agent on Linux

Installation and Configuration of Cisco VPN Client on Linux

Oracle Startup Issues ORA-16038