zoukankan      html  css  js  c++  java
  • ubuntu 1204 安装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
    
  • 相关阅读:
    PKU 1860 Currency Exchange 最短路 bellman
    PKU 3259 Wormholes 最短路 bellman
    bzoj3514
    bzoj2594
    bzoj3901
    bzoj2843&&1180
    bzoj2631
    bzoj2049
    bzoj2002
    bzoj1146
  • 原文地址:https://www.cnblogs.com/tlnshuju/p/7228213.html
Copyright © 2011-2022 走看看