今天客户服务器上出现报警,查找了下原因,发现根目录下有wk.php E:\phpStudy\MySQL\bin\mysqld.exe, Version: (MySQL Community Server (GPL)). started with: TCP Port: , Named Pipe: MySQL Time Id Command Argument Quit :: Connect root@localhost on Query SET NAMES 'utf8' COLLATE 'utf8_g
用phpstudy搭建的lnmp环境下mysql授权远程连接 简单高效 这是因为mysql 里的优先级不是所有人(提前检查防火墙是关闭状态)1.使用phpstudy安装的mysql没有放置到可以直接调用的目录里,所以只能使用绝对路径来访问:/phpstudy/mysql/bin/mysql -u用户名 -p密码 2.执行use mysql; 3.执行grant all privileges on *.* to root@'%' identified by '密码'; 4.执行flush priv