在 Debian 上安装 mysql

Nuñ*_*ada -3 debian sudo mysql

我想在Debian上安装mysql,但出现错误

admin@localhost:~$ sudo apt-get install mysql-server
[sudo] password for admin: 
admin is not in the sudoers file.  This incident will be reported.
Run Code Online (Sandbox Code Playgroud)

Ste*_*itt 5

正如Philip Couling所提到的,您的admin用户\xe2\x80\x99t 不允许使用sudo. 您需要以其他方式成为root(例如 su使用root密码),然后运行

\n\n
apt install mariadb-server\n
Run Code Online (Sandbox Code Playgroud)\n\n

在当前版本的 Debian 中,mysql-server不再可用,它\xe2\x80\x99s 已被替换为mariadb-server(其中包MariaDB,MySQL 的一个分支)。

\n