ubuntu 1204 安装mysql
2015-07-23 16:30
453 查看
检测本机是否有安装mysql
执行上面的命令之后,看到 mysq 的socket 处于监听状态,说明有安装成功。
安装mysql
安装过程中会提示输入数据库管理员密码(自己设定的),如图
设置完成之后等待安装完成即可。
mysql 的登陆与退出
sudo netstat -tap | grep mysql
执行上面的命令之后,看到 mysq 的socket 处于监听状态,说明有安装成功。
安装mysql
sudo apt-get install mysql-server mysql-client libmysqlclient-dev
安装过程中会提示输入数据库管理员密码(自己设定的),如图
设置完成之后等待安装完成即可。
mysql 的登陆与退出
$ mysql -u root -p Enter password: Welcome to the MySQL monitor. Commands end with ; or \g. Your MySQL connection id is 45 Server version: 5.5.43-0ubuntu0.12.04.1 (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> quit; Bye
相关文章推荐
- MYSQL 实现 MSSQL row_number() 类似的分组排序
- mysql常见字符串处理函数结束
- Mysql开启远程连接方法
- MySQL相关命令
- MySQL控制台进入拒绝
- mysql处理字符串的两个绝招:substring_index,concat
- 远程MYSQL 1103错误 ERROR 1130: Host *.*.*.* is not allowed to connect to this MySQL
- MySql索引中,对NULL的处理
- MySQL Study之--MySQL用户及权限管理
- mysql中的group_concat函数的用法
- C# 连接调用MySQL
- MySQL中的max_connections和max_user_connections 及 MySQL服务器最大连接数的合理设置
- Ubuntu下查看已安装软件名称/卸载软件
- MYSQL查询
- Mysql(Windows)--- Access denied for user 'root'@'localhost'(using password:YES)
- MySQL Study之--MySQL用户及权限管理
- Mysql 数字类型转换函数
- MySQL使用经验总结
- lamp编译安装
- mysql 分表