树莓派安装mysql

树莓派安装mysql

直接输入:
sudo apt install mysql-server
提示:

apt-get install mysql-server
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package mysql-server is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
However the following packages replace it:
mariadb-server-10.0
E: Package ‘mysql-server‘ has no installation candidate

按照提示安装就好:
sudo apt install mariadb-server-10.0

Mysql安装成功后,默认的root用户密码为空,你可以使用以下命令来创建root用户的密码:

sudo mysqladmin -u root password "new_password"

用新密码登陆就可以了。
sudo mysql -u root -p

树莓派安装mysql

上一篇:MongoDB批量更新|按条件更新SQL|批量删除某个字段


下一篇:oracle row/column