设为首页 加入收藏

TOP

ubuntu1204安装mysql
2015-11-21 02:02:14 来源: 作者: 【 】 浏览:0
Tags:ubuntu1204 安装 mysql

检测本机是否有安装mysql

sudo netstat -tap | grep mysql

执行上面的命令之后,看到 mysq 的socket 处于监听状态,说明有安装成功。

安装mysql

sudo apt-get install mysql-server mysql-client libmysqlclient-dev

安装过程中会提示输入数据库管理员密码(自己设定的),如图
这里写图片描述
这里写图片描述
<??http://www.2cto.com/kf/ware/vc/" target="_blank" class="keylink">vcD4NCjxwPjxjb2RlIGNsYXNzPQ=="hljs 1c">设置完成之后等待安装完成即可。

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的安装和配置 下一篇MySQLStudy之--MySQLschema_infor..

评论

帐  号: 密码: (新用户注册)
验 证 码:
表  情:
内  容: