请教,树莓派php没有权限操作sql数据库?怎么解决!
本帖最后由 sohappyoh 于 2017-10-19 08:56 编辑问题解决了:
grant all privileges on *.* to 'root'@'localhost' identified by 'password' with grant option;
请教,树莓派php没有权限操作sql数据库?怎么解决?我现在的办法是:
sudo /etc/init.d/mysqld stop
sudo mysql_safe --skip-grant-tables &
运行上面两命令,但是这样肯定不是正常解决问题的办法。数据库密码肯定是正确的。
页:
[1]