拙网论坛

 找回密码
 立即注册
搜索
热搜: 活动 交友 discuz
查看: 175|回复: 0

Ubuntu14.04.6安装MySQL

[复制链接]

949

主题

1001

帖子

3736

积分

管理员

Rank: 9Rank: 9Rank: 9

积分
3736
发表于 2019-10-8 18:09:11 | 显示全部楼层 |阅读模式
第一步执行:
  1. sudo apt-get install mysql-server
复制代码
第二步执行:
  1. sudo install mysql-client
复制代码
第三步执行:
  1. sudo apt-get install libmysqlclient-dev
复制代码

第四步执行和反馈:
  1. lishimin@tang:/$ sudo netstat -tap | grep mysql
  2. tcp        0      0 localhost:mysql         *:*                     LISTEN      8049/mysqld     
复制代码
登录:
  1. lishimin@tang:/$ mysql -u root -p
  2. Enter password:
  3. Welcome to the MySQL monitor.  Commands end with ; or \g.
  4. Your MySQL connection id is 44
  5. Server version: 5.5.62-0ubuntu0.14.04.1 (Ubuntu)

  6. Copyright (c) 2000, 2018, Oracle and/or its affiliates. All rights reserved.

  7. Oracle is a registered trademark of Oracle Corporation and/or its
  8. affiliates. Other names may be trademarks of their respective
  9. owners.

  10. Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.

  11. mysql> show databases
  12.     -> ;
  13. +--------------------+
  14. | Database           |
  15. +--------------------+
  16. | information_schema |
  17. | mysql              |
  18. | performance_schema |
  19. +--------------------+
  20. 3 rows in set (0.00 sec)
复制代码


退出:
  1. mysql> exit
  2. Bye
复制代码



回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

Archiver|手机版|小黑屋|抱朴守拙BBS

GMT+8, 2025-5-25 20:38 , Processed in 0.182744 second(s), 18 queries .

Powered by Discuz! X3.4

© 2001-2017 Comsenz Inc.

快速回复 返回顶部 返回列表