1.下载
wget https://www.apachefriends.org/xampp-files/5.6.37/xampp-linux-x64-5.6.37-0-installer.run
2.安装
chmod -R 777 ampp-linux-x64-5.6.37-0-installer.run
./ampp-linux-x64-5.6.37-0-installer.run
3.启动
/opt/lamp/lamp start
4.环境变量
在etc/profile末尾添加下面代码
export PATH=$PATH:/opt/lampp/bin
执行source /etc/profile 或 执行./profile使其生效,可以通过echo $PATH 命令查看是否添加成功
5.修改mysql初始密码
mysql默认密码为空
连接数据库: mysql -uroot -p
设置密码
grant all privileges on *.* to 'root'@'%' identified by '12345678' with grant option;