Installing Percona/MySQL unattended on Ubuntu

后端 未结 5 1623
闹比i
闹比i 2020-12-28 08:29

I can install MYSQL on Ubuntu without prompts with the code below:

dbpass=\"mydbpassword\"
export DEBIAN_FRONTEND=noninteractive
echo mysql-server-5.1 mysql-         


        
5条回答
  •  没有蜡笔的小新
    2020-12-28 09:19

    I actually found that the answer here install mysql on ubuntu without password prompt that suggested

    export DEBIAN_FRONTEND=noninteractive apt-get -q -y install mysql-server

    Worked and left me with a root user with no password, which is what I wanted.

提交回复
热议问题