摘要: 1.编辑进入my.cnf文件vim /etc/my.cnf2.在最后一行加入skip-grant-tables3.重新启动数据库service mysqld restart4.不用输入密码可以直接进入数据库了mysql -uroot -p5.选择数据库use mysql6.更... 阅读全文
posted @ 2018-04-17 11:08 咸鱼也是有梦想的 阅读(375) 评论(0) 推荐(0) 编辑
摘要: 远程连接mysql出现错误提示ERROR 1130: Host 192.168.2.159 is not allowed to connect to this MySQL server 1.先选择数据库use mysql2.查询需要user表select host,user... 阅读全文
posted @ 2018-04-17 11:03 咸鱼也是有梦想的 阅读(591) 评论(0) 推荐(0) 编辑
摘要: mysql基本操作安装服务端yum install mysql-conmmunity-server启动mysqlservice mysqld start / restart停止mysqlservice mysqld stop mysql安装CentOS7默认安装的mar... 阅读全文
posted @ 2018-04-17 11:01 咸鱼也是有梦想的 阅读(164) 评论(0) 推荐(0) 编辑
摘要: 安装nginx1.先添加CentOS 7 Nginx yum资源库rpm -Uvh http://nginx.org/packages/centos/7/noarch/RPMS/nginx-release-centos-7-0.el7.ngx.noarch.rpm2.安装 n... 阅读全文
posted @ 2018-04-17 10:58 咸鱼也是有梦想的 阅读(753) 评论(0) 推荐(0) 编辑
摘要: 安装apache1.安装:(httpd是Apache在centos中的名字)yum install httpd2.启动:service httpd start3.网页访问80端口:172.20.73.243 LINUX的IP地址 查询防火墙80端口是否启用: netsta... 阅读全文
posted @ 2018-04-17 10:53 咸鱼也是有梦想的 阅读(311) 评论(0) 推荐(0) 编辑