Install MySql on Linux


Download MySql from here

Then Extract the rar file and export these file on Linux server
MySQL-client-5.1.71-1.glibc23.i386.rpm
MySQL-devel-5.1.71-1.glibc23.i386.rpm
MySQL-server-5.1.71-1.glibc23.i386.rpm
Then Install using the following command
1
[oracle@localhost ~]$ rpm -ivh MySQL-devel-5.1.71-1.glibc23.i386.rpm
Change password
1
[local-user]# <strong>/usr/bin/mysqladmin -u root password 'mypassword'

Connect MySql
1
2
3
4
5
6
7
8
9
10
11
12
13
14
[oracle@localhost ~]$ /usr/bin/mysql -u root -ptab
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 15
Server version: 5.1.71 MySQL Community Server (GPL)
Copyright (c) 2000, 2013, Oracle and/or its affiliates. All rights reserved.
Oracle is a registered trademark of Oracle Corporation and/or its
affiliates. Other names may be trademarks of their respective
owners.
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
mysql>

Comments