Windows11 scoopを使用してmysqlをインストールする

環境
Windows 11 64bit Pro
MySQL 8.0.27

操作方法
1. mysqlパッケージを検索します
scoop search mysql

実行結果

Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
C:\Users\user>scoop search mysql
Results from local buckets...
Name Version Source Binaries
---- ------- ------ --------
tinode-mysql 0.22.9 extras
xampp 8.2.4-0 extras mysql.exe | mysqld.exe
mariadb 11.0.2 main mysql.exe | mysqladmin.exe | mysqlbinlog.exe | mysqlcheck.exe | mysqld.exe | mysqldump.…
mysql-workbench 8.0.33 main
mysql 8.0.33 main
sqldef 0.16.2 main mysqldef.exe
C:\Users\user>scoop search mysql Results from local buckets... Name Version Source Binaries ---- ------- ------ -------- tinode-mysql 0.22.9 extras xampp 8.2.4-0 extras mysql.exe | mysqld.exe mariadb 11.0.2 main mysql.exe | mysqladmin.exe | mysqlbinlog.exe | mysqlcheck.exe | mysqld.exe | mysqldump.… mysql-workbench 8.0.33 main mysql 8.0.33 main sqldef 0.16.2 main mysqldef.exe
C:\Users\user>scoop search mysql
Results from local buckets...

Name Version Source Binaries
---- ------- ------ --------
tinode-mysql 0.22.9 extras
xampp 8.2.4-0 extras mysql.exe | mysqld.exe
mariadb 11.0.2 main mysql.exe | mysqladmin.exe | mysqlbinlog.exe | mysqlcheck.exe | mysqld.exe | mysqldump.…
mysql-workbench 8.0.33 main
mysql 8.0.33 main
sqldef 0.16.2 main mysqldef.exe

2.mysqlをインストールします
scoop install mysql

3.mysql起動
コマンドプロンプトで以下のコマンドを実行します
mysqld –console

4.Windowsセキュリティの重要な警告ダイアログが表示されます。
「アクセスを許可する」をクリックします。

5.コマンドプロンプトが起動します。

Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
> mysql -u root -p
Enter password:
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 8
Server version: 8.0.27 MySQL Community Server - GPL
Copyright (c) 2000, 2021, Oracle and/or its affiliates.
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>
> mysql -u root -p Enter password: Welcome to the MySQL monitor. Commands end with ; or \g. Your MySQL connection id is 8 Server version: 8.0.27 MySQL Community Server - GPL Copyright (c) 2000, 2021, Oracle and/or its affiliates. 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>
> mysql -u root -p

Enter password:
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 8
Server version: 8.0.27 MySQL Community Server - GPL

Copyright (c) 2000, 2021, Oracle and/or its affiliates.

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>

6.MySQLをアンインストールします。
> scoop uninstall mysql

MySQL

Posted by arkgame