unable to install mysql


4 Answer(s)


a good practice before you install a program run
sudo apt-get update //before your mysql install commands due to other dependencies.

hi Nagaratna,

Looks like the site was unavailable, can you try executing the commands once again.

IF you still see the errors, follow these steps to install Mysql

* Goto http://dev.mysql.com/downloads/mysql/5.6.html#downloads, Select "Platform" as "Red Hat Enterprise Linux/Oracle Linux" from the drop down
* Download the following rpms by clicking on "Download" next to them
MySQL-server-5.6.20-1.el7.x86_64.rpm
MySQL-shared-5.6.20-1.el7.x86_64.rpm
MySQL-client-5.6.20-1.el6.i686.rpm
MySQL-shared-compat-5.6.20-1.rhel5.i386.rpm

* Login as "root" user and execute following
rpm -ivh MySQL-server-5.6.20-1.el7.x86_64.rpm
rpm -ivh MySQL-shared-5.6.20-1.el7.x86_64.rpm
rpm -ivh MySQL-client-5.6.20-1.el6.i686.rpm
rpm -Uvh MySQL-shared-compat-5.6.20-1.rhel5.i386.rpm

* these commands will install Mysql and display some text on the screen, please read thru them
* After successful installation, a random password is generated and stored in the file /root/.mysql_secret, which can be used to login to mysql

* login to mysql using
mysql -uroot -p

Thanks

I downloaded these rpms and had to install rpm to execute them but while downloading rpm i again got some authentication issues:

cloudera@cloudera-vm:~$ sudo apt-get install rpm
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following extra packages will be installed:
librpm1 librpmbuild1 librpmio1 rpm-common rpm2cpio
Suggested packages:
alien elfutils rpm-i18n
The following NEW packages will be installed:
librpm1 librpmbuild1 librpmio1 rpm rpm-common rpm2cpio
0 upgraded, 6 newly installed, 0 to remove and 29 not upgraded.
Need to get 4,661kB of archives.
After this operation, 5,816kB of additional disk space will be used.
Do you want to continue [Y/n]? y
WARNING: The following packages cannot be authenticated!
librpmio1 rpm-common librpm1 librpmbuild1 rpm2cpio rpm
Install these packages without verification [y/N]?


What should i do next to get this working?

hi Nagaratna,

Looks like some of the packages were not installed on the Linux OS that you were working with. The error what you see is a Warning and its perfectly fine to go ahead and install them.

Please execute and let us know in case of any issues.

Thanks