1、安装mysql-server:
hadoop@stcn501a0166:~$ mysql
程序 'mysql' 已包含在下列软件包中:
* mysql-client-core-5.5
* mariadb-client-core-5.5
* mysql-client-core-5.6
* percona-xtradb-cluster-client-5.5
请尝试:sudo apt-get install
hadoop@stcn501a0166:~$ sudo apt-get install mysql-server
[sudo] password for hadoop:
正在读取软件包列表... 完成
正在分析软件包的依赖关系树
正在读取状态信息... 完成
说明:遇到输入的地方输入Y,过程中需要设置root用户的密码,设置时记住密码
2、root用户登录:
hadoop@stcn501a0166:~$ mysql -u root -p
Enter password:
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 48
Server version: 5.5.44-0ubuntu0.14.04.1 (Ubuntu)
Copyright (c) 2000, 2015, Oracle and/or its affiliates. All rights reserved.
Oracle is a registered trademark of Oracle Corpora