ubuntu15.10安装mysql数据库
2015-12-21 14:26
477 查看
(1)在终端下执行sudo apt-get install mysql-server-5.6
命令
(2)一路按回车键,等安装好之后,再设置密码。
(3)安装成功之后,执行mysql -u root命令,进入数据库,如下:
现在就可以设置root密码了,执行grant all privileges on *.* to root@"%" identified by "passwd" ;把密码设置为passwd。
命令
(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。
相关文章推荐
- MySQL创建和修改数据库语法
- mysql防止SQL 注入
- mysql优化知识分享
- [MySQL] 变量(参数)的查看和设置
- 数据库_Mysql _Every derived table must have its own alias 错误 子查询出来的表必须有一个临时表名
- Could not load file or assembly 'MySql.Data.CF,
- mysql运行参数详解
- MYSQL--存储过程-触发器-事务
- mysql 字段增加
- mysql workbench中PK,NN,UQ,BIN,UN,ZF,AI字段类型标识说明
- MySQL性能优化之参数配置
- Mysql 实例分析连接
- Mysql日志操作
- Mysql优化(一)—Sql语句
- mysql 5.7安装
- MySQL数据库之多表操作
- 关于mysql管理事务处理
- 查询mysql当前连接数
- mysql修改字符集位utf-8使其和操作数据库连接字符程序统一
- mysql数据库中锁表和所行