MySQL 服务器搭建及使用
1. 树莓派安装 MySQL
安装
apt install mariadb-server-10.0配置
mysql_secure_installation登录
mysql -uroot -pxxxxxx添加用户
create user 'fancy'@'localhost' identified by 'xxxxxx'; grant all on *.* to 'fancy'@'localhost' identified by 'xxxxxx';然后 fancy 用户就可以登录使用了
mysql -ufancy -pxxxxxx
