Debianにmysqlをインストールする

Debianに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.

ベストアンサー1

言ったようにフィリップ・クーリン、あなたのadminユーザーはrootにすることはできませんsudo。別の方法でルートにする必要があります(例えば suルートパスワードを使用して)それを実行します。

apt install mariadb-server

現在、Debian バージョンでは使用できなくなり、次のパッケージmysql-serverに置き換えられました。mariadb-serverマリアデータベース、MySQLのフォーク)。

おすすめ記事