一、安装GIT
sudo apt-get install git
二、安装PI BOARD
cd /var/www/html
sudo git clone https://github.com/spoonysonny/pi-dashboard.git
sudo chown -R www-data pi-dashboard #为pi-dashboard分配权限
三、访问pi-dashboard
浏览器登入:localhost/pi-dashboard
Tips:
eth0:以太网卡0 1 2 3 …
lo:localhost
wlan0:无线网卡 0 1 2 3……
使用SQL语句添加mariaDB数据库用户
进入mariaDB环境:
mysql –u root -p
CREATE USER 'wxl'@'localhost' IDENTIFIED BY '1324483661';#wxl为用户名,后面为密码
查看用户对数据库具有的权限:
show grants for hp@localhost;
赋予用户对数据库具有的权限:
grant all privileges on *.* to hp@localhost;
撤销用户对数据库具有的权限:
#revoke all privileges on . from hp@localhost;
刷新权限:
flush privileges;
exit;
注意:一定要加分号
重新验证phpMyAdmin