PowerShell requires an execution policy in [Unrestricted, RemoteSigned, ByPass] to run Scoop. For example, to set the execution policy to 'RemoteSigned' please run : 'Set-ExecutionPolicy RemoteSigned -scope CurrentUser'
alias Manage scoop aliases bucket Manage Scoop buckets cache Show or clear the download cache checkup Check for potential problems cleanup Cleanup apps by removing old versions config Get or set configuration values create Create a custom app manifest depends List dependencies for an app export Exports (an importable) list of installed apps help Show help for a command hold Hold an app to disable updates home Opens the app homepage info Display information about an app install Install apps list List installed apps prefix Returns the path to the specified app reset Reset an app to resolve conflicts search Search available apps status Show status and check for new app versions unhold Unhold an app to enable updates uninstall Uninstall an app update Update apps, or Scoop itself virustotal Look for app's hash on virustotal.com which Locate a shim/executable (similar to 'which' on Linux)
Type 'scoop help <command>' to get help for a specific command.
e.g. The usual way to install an app (uses your local 'buckets'): scoop install git
To install an app from a manifest at a URL: scoop install https://raw.githubusercontent.com/ScoopInstaller/Main/master/bucket/runat.json
To install an app from a manifest on your computer scoop install \path\to\app.json
Options: -g, --global Install the app globally -i, --independent Don't install dependencies automatically -k, --no-cache Don't use the download cache -s, --skip Skip hash validation (use with caution!) -a, --arch <32bit|64bit> Use the specified architecture, if the app supports it
Buckets are repositories of apps available to install. Scoop comes with a default bucket, but you can also add buckets that you or others have published.
由于包版本可能更新,Scoop 在包安装目录下提供一个current的软链接文件夹,表示当前使用版本的包。因此我们只需进入该目录查找我们需要的文件。 确定 MySQL 已安装,然后进入 Scoop 安装目录下的/apps/mysql/current目录,并进入其中的bin目录,并输入以下命令:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
# 初始化本地数据库 mysqld --initialize # 安装 MySQL 服务 mysqld --install mysql # 启动 MySQL 服务 sc start mysql # 使用初始密码进入 MySQL:初始密码为空 # mysql -u root -p # 运行数据库 mysqld --console # 修改 MySQL 8 的密码插件及初始密码 ALTER USER 'root'@'localhost' IDENTIFIED WITH mysql_native_password BY 'password'; # 退出数据库 quit; # 停止 MySQL 服务 sc stop mysql