您的位置:首页 > 数据库 > MySQL

ubuntu15.10安装mysql数据库

2015-12-21 14:26 477 查看
(1)在终端下执行sudo apt-get install mysql-server-5.6
命令

(2)一路按回车键,等安装好之后,再设置密码。

(3)安装成功之后,执行mysql -u root命令,进入数据库,如下:

Welcome to the MySQL monitor.  Commands end with ; or \g.
Your MySQL connection id is 12
Server version: 5.6.27-0ubuntu1 (Ubuntu)

Copyright (c) 2000, 2015, 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密码了,执行grant all privileges on *.* to root@"%" identified by "passwd" ;把密码设置为passwd。
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: