使用ubuntu问题

 ubuntu忘记用户密码看这里,真的不错,一文重置密码

VMware Ubuntu虚拟机忘记密码-CSDN博客https://blog.csdn.net/Super_Jadroid/article/details/135092514?spm=1001.2014.3001.5502

在虚拟机ubuntu上安装ssh

sudo apt-get install ssh openssh-server

出现以下错误

Could not get lock /var/cache/apt/archives/lock - open (11: Resource temporarily unavailable)
E: Unable to lock directory /var/cache/apt/archives/

您看到此错误是因为其他程序正在尝试更新 Ubuntu。当命令或应用程序更新系统或安装新软件时,它会锁定 文件,所以需要等更新完成之后才能继续。

设置权限也报错。。。。

mysql> GRANT ALL PRIVILEGES ON *.* 'root'@'%' IDENTIFIED BY 'Eastcom@123' WITH GRANT OPTION;
ERROR 1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ''root'@'%' IDENTIFIED BY 'Eastcom@123' WITH GRANT OPTION' at line 1
解决办法:

这条语句适用于MySQL8.0之前的,而MySQL8.0及之后的,设置远程连接权限要用下面的语句才可以:
create user root@'%' identified by '123456';
grant all privileges on *.* to root@'%' with grant option;

相关推荐

  1. 使用ubuntu问题

    2023-12-27 22:52:03       67 阅读
  2. ubuntu使用ffmpeg录屏(播放黑屏问题解决)

    2023-12-27 22:52:03       64 阅读
  3. ubuntu安装源问题

    2023-12-27 22:52:03       27 阅读

最近更新

  1. docker php8.1+nginx base 镜像 dockerfile 配置

    2023-12-27 22:52:03       98 阅读
  2. Could not load dynamic library ‘cudart64_100.dll‘

    2023-12-27 22:52:03       106 阅读
  3. 在Django里面运行非项目文件

    2023-12-27 22:52:03       87 阅读
  4. Python语言-面向对象

    2023-12-27 22:52:03       96 阅读

热门阅读

  1. Android保存WebView HTML源码

    2023-12-27 22:52:03       53 阅读
  2. HBase基础知识(六):HBase 对接 Hive

    2023-12-27 22:52:03       53 阅读
  3. pnpm包管理器

    2023-12-27 22:52:03       68 阅读
  4. git子模块使用关键命令

    2023-12-27 22:52:03       52 阅读
  5. uniapp实现瀑布流

    2023-12-27 22:52:03       48 阅读
  6. 【C++】多线程(四)

    2023-12-27 22:52:03       59 阅读
  7. 随笔笔记-2023

    2023-12-27 22:52:03       49 阅读
  8. 【ENGF0004】Mathematical Modelling and Analysis

    2023-12-27 22:52:03       48 阅读
  9. odoo17核心概念view2——view_service

    2023-12-27 22:52:03       44 阅读