Termux安装ubuntu
2019-10-27 本文已影响0人
Kimmygogo
- F-Droid下载anlinux
- 在anlinux的仪表板选择一个系统,选择ubuntu
- 复制命令
- 等待安装完
- ./start-ubuntu.sh 启动ubuntu
- root下 apt install mysql-server 等待安装完成
- service mysql start 启动mysql服务
root@localhost:/# service mysql start
- Starting MySQL database server mysqld No directory, logging in with HOME=/
- mysql 进mysql
root@localhost:/# mysql
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 4
Server version: 5.7.21-1ubuntu1 (Ubuntu)
Copyright (c) 2000, 2018, Oracle and/or its affiliates. All rights reser
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 sta
- 修改密码
mysql> update mysql.user set authentication_string=password('123456') where user='root';
Query OK, 1 row affected, 1 warning (0.00 sec)
Rows matched: 1 Changed: 1 Warnings: 1