deepin v 20 mysqlをインストール
deepin v 20ソースの交換とmysqlのインストール
deepin v 20はmysqlを直接インストールできないため、先にソースを交換し、アリソースに交換することで、後で速度を速めることができます.修正ファイルsudo vim/etc/apt/sources.list
2.sudo apt-get update 3を実行する.sudo apt-get upgradeコマンドを実行します.
mysqlのインストール
1.mysqlをインストールする文の実行
2.ログイン可能なアカウントを表示し、パスワードを表示する3.mysqlにログインしたアカウントのパスワードを取得しました
4.その後、mysqlデータベースに順次アクセスし、rootパスワードを変更し、キャッシュをリフレッシュします.その後、exitはrootアカウントを使用してログインを終了することができます.
5.修正したアカウントパスワードでログインする
deepin v 20はmysqlを直接インストールできないため、先にソースを交換し、アリソースに交換することで、後で速度を速めることができます.
# , :
## Generated by deepin-installer
deb [by-hash=force] https://mirrors.aliyun.com/deepin/ panda main contrib non-free
2.sudo apt-get update 3を実行する.sudo apt-get upgradeコマンドを実行します.
mysqlのインストール
1.mysqlをインストールする文の実行
sudo apt-get install mysql-server mysql-client
2.ログイン可能なアカウントを表示し、パスワードを表示する3.mysqlにログインしたアカウントのパスワードを取得しました
lin@lin-PC:~$ mysql -udebian-sys-maint -pjSaNFiRzjlDAxiRN
mysql: [Warning] Using a password on the command line interface can be insecure.
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 2
Server version: 5.7.21-1 (Debian)
Copyright (c) 2000, 2018, 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>
4.その後、mysqlデータベースに順次アクセスし、rootパスワードを変更し、キャッシュをリフレッシュします.その後、exitはrootアカウントを使用してログインを終了することができます.
use mysql;
update user set plugin="mysql_native_password",authentication_string=password(' ') where user="root";
FLUSH PRIVILEGES;
5.修正したアカウントパスワードでログインする
mysql -uroot -p000000