1.
Go to below link and provide
credentials.
2.
Select the product from the
list .
3. Download the rpm zip file.
4. Ftp it to the linux machine.
5. Once you unzip, you will get
the following files.
6. Next, make sure to have Perl
installed in the machine.
7. Now, install the package for shared
libraries , Server and client
2014-04-11 10:10:50 0 [Warning]
TIMESTAMP with implicit DEFAULT value is deprecated. Please use
--explicit_defaults_for_timestamp server option (see documentation for more
details).
2014-04-11 10:10:50 6343 [Note] InnoDB:
Using atomics to ref count buffer pool pages
2014-04-11 10:10:50 6343 [Note] InnoDB:
The InnoDB memory heap is disabled
2014-04-11 10:10:50 6343 [Note] InnoDB:
Mutexes and rw_locks use GCC atomic builtins
2014-04-11 10:10:50 6343 [Note] InnoDB:
Compressed tables use zlib 1.2.3
2014-04-11 10:10:50 6343 [Note] InnoDB:
Using Linux native AIO
2014-04-11 10:10:50 6343 [Note] InnoDB:
Not using CPU crc32 instructions
2014-04-11 10:10:50 6343 [Note] InnoDB:
Initializing buffer pool, size = 128.0M
2014-04-11 10:10:51 6343 [Note] InnoDB:
Completed initialization of buffer pool
2014-04-11 10:10:51 6343 [Note] InnoDB:
The first specified data file ./ibdata1 did not exist: a new database to be
created!
2014-04-11 10:10:51 6343 [Note] InnoDB:
Setting file ./ibdata1 size to 12 MB
2014-04-11 10:10:51 6343 [Note] InnoDB:
Database physically writes the file full: wait...
2014-04-11 10:10:51 6343 [Note] InnoDB:
Setting log file ./ib_logfile101 size to 48 MB
2014-04-11 10:10:57 6343 [Note] InnoDB:
Setting log file ./ib_logfile1 size to 48 MB
2014-04-11 10:10:58 6343 [Note] InnoDB:
Renaming log file ./ib_logfile101 to ./ib_logfile0
2014-04-11 10:10:58 6343 [Warning]
InnoDB: New log files created, LSN=45781
2014-04-11 10:10:58 6343 [Note] InnoDB:
Doublewrite buffer not found: creating new
2014-04-11 10:10:58 6343 [Note] InnoDB:
Doublewrite buffer created
2014-04-11 10:10:58 6343 [Note] InnoDB:
128 rollback segment(s) are active.
2014-04-11 10:10:59 6343 [Warning]
InnoDB: Creating foreign key constraint system tables.
2014-04-11 10:10:59 6343 [Note] InnoDB:
Foreign key constraint system tables created
2014-04-11 10:10:59 6343 [Note] InnoDB:
Creating tablespace and datafile system tables.
2014-04-11 10:10:59 6343 [Note] InnoDB:
Tablespace and datafile system tables created.
2014-04-11 10:10:59 6343 [Note] InnoDB:
Waiting for purge to start
2014-04-11 10:10:59 6343 [Note] InnoDB:
5.6.17 started; log sequence number 0
2014-04-11 10:10:59 6343 [Note] RSA
private key file not found: /var/lib/mysql//private_key.pem. Some
authentication plugins will not work.
2014-04-11 10:10:59 6343 [Note] RSA
public key file not found: /var/lib/mysql//public_key.pem. Some authentication
plugins will not work.
A random root password has been set. You
will find it in '/root/.mysql_secret'.
2014-04-11 10:11:00 6343 [Note] Binlog
end
2014-04-11 10:11:00 6343 [Note] InnoDB:
FTS optimize thread exiting.
2014-04-11 10:11:00 6343 [Note] InnoDB:
Starting shutdown...
2014-04-11 10:11:02 6343 [Note] InnoDB:
Shutdown completed; log sequence number 1625977
2014-04-11 10:11:02 0 [Warning]
TIMESTAMP with implicit DEFAULT value is deprecated. Please use --explicit_defaults_for_timestamp
server option (see documentation for more details).
2014-04-11 10:11:03 6367 [Note] InnoDB:
Using atomics to ref count buffer pool pages
2014-04-11 10:11:03 6367 [Note] InnoDB:
The InnoDB memory heap is disabled
2014-04-11 10:11:03 6367 [Note] InnoDB:
Mutexes and rw_locks use GCC atomic builtins
2014-04-11 10:11:03 6367 [Note] InnoDB:
Compressed tables use zlib 1.2.3
2014-04-11 10:11:03 6367 [Note] InnoDB:
Using Linux native AIO
2014-04-11 10:11:03 6367 [Note] InnoDB:
Not using CPU crc32 instructions
2014-04-11 10:11:03 6367 [Note] InnoDB:
Initializing buffer pool, size = 128.0M
2014-04-11 10:11:03 6367 [Note] InnoDB:
Completed initialization of buffer pool
2014-04-11 10:11:03 6367 [Note] InnoDB:
Highest supported file format is Barracuda.
2014-04-11 10:11:03 6367 [Note] InnoDB:
128 rollback segment(s) are active.
2014-04-11 10:11:03 6367 [Note] InnoDB:
Waiting for purge to start
2014-04-11 10:11:03 6367 [Note] InnoDB:
5.6.17 started; log sequence number 1625977
2014-04-11 10:11:03 6367 [Note] RSA
private key file not found: /var/lib/mysql//private_key.pem. Some
authentication plugins will not work.
2014-04-11 10:11:03 6367 [Note] RSA
public key file not found: /var/lib/mysql//public_key.pem. Some authentication
plugins will not work.
2014-04-11 10:11:03 6367 [Note] Binlog
end
2014-04-11 10:11:03 6367 [Note] InnoDB:
FTS optimize thread exiting.
2014-04-11 10:11:03 6367 [Note] InnoDB:
Starting shutdown...
2014-04-11 10:11:05 6367 [Note] InnoDB:
Shutdown completed; log sequence number 1625987
A RANDOM PASSWORD HAS
BEEN SET FOR THE MySQL root USER !
You will find that
password in '/root/.mysql_secret'.
You must change that password on your
first connect,
no other statement but 'SET PASSWORD'
will be accepted.
See the manual for the semantics of the
'password expired' flag.
Also, the account for the anonymous user
has been removed.
In addition, you can run:
/usr/bin/mysql_secure_installation
which will also give you the option of
removing the test database.
This is strongly recommended for
production servers.
See the manual for more instructions.
Please report any problems at
http://bugs.mysql.com/
The latest information about MySQL is
available on the web at
http://www.mysql.com
Support MySQL by buying support/licenses
at http://shop.mysql.com
New default config file was created as
/usr/my.cnf and
will be used by default by the server
when you start it.
You may edit this file to change server
settings
8. Now the installation is
completed. Let us some passwords,create users and grant access for the
outsiders to access the database.
The default password is
located in
/root/.mysql_secret
[root@vm1 ~]# cat /root/.mysql_secret
# The random password set for the root user at Fri Apr 11 10:11:00
2014 (local time): GHUiOJgwkLD7I14V
9. Start the mysql service .
10. Now, we will login to the
database using client utility and change the password.
mysql –uroot –p
type the password from
/root/.mysql_secret file
11. Once logged in, we need to
change the root password, let us try to run the below query and see.
But its failing. So, we need to use only SET PASSWORD command.
12. Let us re-login to Mysql as
root user and change the password as ***
mysql> set password for
'root'@'localhost' = PASSWORD('***';
Query OK, 0 rows affected
(2.28 sec)
Now, we have set
the root password.
13.
Next, we will create a super
user to access the database from outside server even though it is not a good
practice to give access to outside server.
mysql> create user
'rootadmin'@'%' identified by '****';
Query OK, 0 rows affected
(0.15 sec)
mysql> grant all on *.*
to 'rootadmin'@'%';
Query OK, 0 rows affected
(0.01 sec)
14. As next step, we will check the
firewall rules are updated for granting the clients to respond to port 3306 for
outside world. To do this, exit out of
mysql using either ‘exit’ or ‘\q’.
vi /etc/sysconfig/iptables
Add the line.
-A
RH-Firewall-1-INPUT -p tcp -m tcp --dport 3306 -j ACCEPT
15. Restart the iptables service.
16.Finally, to enable the mysql to
have auto start when the server is rebooted.
Chkconfig mysql --level
2345 on
17. Now, let us try to connect from
Windows client using Mysql Workbench.
Give the password in “Store in
Vault”.
No comments:
Post a Comment