HIVE 安装系列(2) mysql 安装成功

HIVE 安装系列(2) mysql 安装成功_第1张图片

 


mysql> show database;
ERROR 1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'database' at line 1
mysql> show databases;
+--------------------+
| Database           |
+--------------------+
| information_schema |
| mysql              |
| performance_schema |
| test               |
+--------------------+
4 rows in set (0.03 sec)

mysql>

 [root@master shm]#cd setup_tool
[root@master setup_tool]#ls
MySQL-client-5.5.31-2.el6.i686.rpm  MySQL-server-5.5.31-2.el6.i686.rpm

[root@master setup_tool]# rpm -ivh  MySQL-client-5.5.31-2.el6.i686.rpm
Preparing...                ########################################### [100%]
   1:MySQL-client           ########################################### [100%]
[root@master setup_tool]#


[root@master setup_tool]#rpm -ivh  MySQL-server-5.5.31-2.el6.i686.rpm
Preparing...                ########################################### [100%]
        file /usr/share/mysql/czech/errmsg.sys from install of MySQL-server-5.5.31-2.el6.i686 conflicts

with file from package mysql-libs-5.1.66-2.el6_3.i686
        file /usr/share/mysql/danish/errmsg.sys from install of MySQL-server-5.5.31-2.el6.i686 conflicts

with file from package mysql-libs-5.1.66-2.el6_3.i686
        file /usr/share/mysql/dutch/errmsg.sys from install of MySQL-server-5.5.31-2.el6.i686 conflicts

with file from package mysql-libs-5.1.66-2.el6_3.i686
        file /usr/share/mysql/english/errmsg.sys from install of MySQL-server-5.5.31-2.el6.i686

conflicts with file from package mysql-libs-5.1.66-2.el6_3.i686
        file /usr/share/mysql/estonian/errmsg.sys from install of MySQL-server-5.5.31-2.el6.i686

conflicts with file from package mysql-libs-5.1.66-2.el6_3.i686
        file /usr/share/mysql/french/errmsg.sys from install of MySQL-server-5.5.31-2.el6.i686 conflicts

with file from package mysql-libs-5.1.66-2.el6_3.i686
        file /usr/share/mysql/german/errmsg.sys from install of MySQL-server-5.5.31-2.el6.i686 conflicts

with file from package mysql-libs-5.1.66-2.el6_3.i686
        file /usr/share/mysql/greek/errmsg.sys from install of MySQL-server-5.5.31-2.el6.i686 conflicts

with file from package mysql-libs-5.1.66-2.el6_3.i686
        file /usr/share/mysql/hungarian/errmsg.sys from install of MySQL-server-5.5.31-2.el6.i686

conflicts with file from package mysql-libs-5.1.66-2.el6_3.i686
        file /usr/share/mysql/italian/errmsg.sys from install of MySQL-server-5.5.31-2.el6.i686

conflicts with file from package mysql-libs-5.1.66-2.el6_3.i686
        file /usr/share/mysql/japanese/errmsg.sys from install of MySQL-server-5.5.31-2.el6.i686

conflicts with file from package mysql-libs-5.1.66-2.el6_3.i686
        file /usr/share/mysql/korean/errmsg.sys from install of MySQL-server-5.5.31-2.el6.i686 conflicts

with file from package mysql-libs-5.1.66-2.el6_3.i686
        file /usr/share/mysql/norwegian-ny/errmsg.sys from install of MySQL-server-5.5.31-2.el6.i686

conflicts with file from package mysql-libs-5.1.66-2.el6_3.i686
        file /usr/share/mysql/norwegian/errmsg.sys from install of MySQL-server-5.5.31-2.el6.i686

conflicts with file from package mysql-libs-5.1.66-2.el6_3.i686
        file /usr/share/mysql/polish/errmsg.sys from install of MySQL-server-5.5.31-2.el6.i686 conflicts

with file from package mysql-libs-5.1.66-2.el6_3.i686
        file /usr/share/mysql/portuguese/errmsg.sys from install of MySQL-server-5.5.31-2.el6.i686

conflicts with file from package mysql-libs-5.1.66-2.el6_3.i686
        file /usr/share/mysql/romanian/errmsg.sys from install of MySQL-server-5.5.31-2.el6.i686

conflicts with file from package mysql-libs-5.1.66-2.el6_3.i686
        file /usr/share/mysql/russian/errmsg.sys from install of MySQL-server-5.5.31-2.el6.i686

conflicts with file from package mysql-libs-5.1.66-2.el6_3.i686
        file /usr/share/mysql/serbian/errmsg.sys from install of MySQL-server-5.5.31-2.el6.i686

conflicts with file from package mysql-libs-5.1.66-2.el6_3.i686
        file /usr/share/mysql/slovak/errmsg.sys from install of MySQL-server-5.5.31-2.el6.i686 conflicts

with file from package mysql-libs-5.1.66-2.el6_3.i686
        file /usr/share/mysql/spanish/errmsg.sys from install of MySQL-server-5.5.31-2.el6.i686

conflicts with file from package mysql-libs-5.1.66-2.el6_3.i686
        file /usr/share/mysql/swedish/errmsg.sys from install of MySQL-server-5.5.31-2.el6.i686

conflicts with file from package mysql-libs-5.1.66-2.el6_3.i686
        file /usr/share/mysql/ukrainian/errmsg.sys from install of MySQL-server-5.5.31-2.el6.i686

conflicts with file from package mysql-libs-5.1.66-2.el6_3.i686
 


[root@master setup_tool]#rpm -qa|grep mysql
mysql-libs-5.1.66-2.el6_3.i686


[root@master setup_tool]#rpm -e mysql-libs-5.1.66-2.el6_3.i686 --nodeps
[root@master setup_tool]#rpm -ivh  MySQL-server-5.5.31-2.el6.i686.rpm

[root@master setup_tool]#rpm -ivh  MySQL-server-5.5.31-2.el6.i686.rpm
Preparing...                ########################################### [100%]
   1:MySQL-server           ########################################### [100%]


PLEASE REMEMBER TO SET A PASSWORD FOR THE MySQL root USER !
To do so, start the server, then issue the following commands:

/usr/bin/mysqladmin -u root password 'root'
/usr/bin/mysqladmin -u root -h master password 'new-password'

Alternatively you can run:
/usr/bin/mysql_secure_installation

which will also give you the option of removing the test
databases and anonymous user created by default.  This is
strongly recommended for production servers.

See the manual for more instructions.

Please report any problems with the /usr/bin/mysqlbug script!


rpm -qa|grep mysql

 


master ~]#service mysql start
Starting MySQL................. SUCCESS!
[root@master ~]# /usr/bin/mysqladmin -u root password 'root';
[root@master ~]#

 

[root@master ~]#mysql -uroot -proot
Welcome to the MySQL monitor.  Commands end with ; or \g.
Your MySQL connection id is 2
Server version: 5.5.31 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>

 

 

[root@master ~]#/etc/rc.d/init.d/mysql start

你可能感兴趣的:(HIVE 安装系列(2) mysql 安装成功)