当前位置: 首页 > news >正文

美业网站建设抖音广告投放收费标准

美业网站建设,抖音广告投放收费标准,网页版qq聊天登录入口,中企动力科技股份有限公司深圳分公司本文主要总结Linux安装Mysql后#xff0c;其他主机访问不了MySQL数据库的原因和解决方法 环境说明#xff1a; MySQL 5.7.30CentOS Linux release 7.6.1810 (Core) 创建完Mysql数据库后可以查看mysql 日志获取root 用户登录密码 [rootlocalhost mysql-5.7.30]# cat /var/l… 本文主要总结Linux安装Mysql后其他主机访问不了MySQL数据库的原因和解决方法 环境说明 MySQL 5.7.30CentOS Linux release 7.6.1810 (Core) 创建完Mysql数据库后可以查看mysql 日志获取root 用户登录密码 [rootlocalhost mysql-5.7.30]# cat /var/log/mysqld.log使用获取到的密码就可以登录数据库了登录后显示mysql 表示成功 [rootlocalhost etc]# mysql -u root -p Enter password: Welcome to the MySQL monitor. Commands end with ; or \g. Your MySQL connection id is 2 Server version: 5.7.30Copyright (c) 2000, 2020, Oracle and/or its affiliates. All rights reserved.Oracle is a registered trademark of Oracle Corporation and/or its affiliates. Other names may be trademarks of their respective owners.Type help; or \h for help. Type \c to clear the current input statement.mysql mysql 登录后root用户不能直接使用会提示需要先重置密码重置密码的时候可能会出现not stifsy current plicy错误。 默认情况下密码长度是8位 如果希望密码简单好记需要修改规则 mysql set password for rootlocalhostpassword(root); ERROR 1819 (HY000): Your password does not satisfy the current policy requirements mysql mysql set global validate_password_length4; Query OK, 0 rows affected (0.00 sec)mysql set global validate_password_policy0; Query OK, 0 rows affected (0.00 sec)mysql set password for rootlocalhostpassword(root); Query OK, 0 rows affected, 1 warning (0.00 sec)mysql show databases; -------------------- | Database | -------------------- | information_schema | | mysql | | performance_schema | | sys | -------------------- 4 rows in set (0.00 sec)mysql use mysql; Database changed mysql 此时如果使用Navicat链接Mysql数据库是链接不上的 Mysql数据库系统中每一用户都有自己的用户名和密码 同时还有自己的主机名称root用户默认的主机名称是 localhost, 所以只能localhost方法 不能使用其他主机访问。  如果此时需要设置root用户其他主机也可以访问修改后使用flush privileges 刷新权限这样不用重启。  mysql grant all privileges on *.* to root% identified by root; Query OK, 0 rows affected, 1 warning (0.00 sec)mysql flush privileges; Query OK, 0 rows affected (0.00 sec)mysql mysql select user ,host from user; ---------------------------- | user | host | ---------------------------- | root | % | | mysql.session | localhost | | mysql.sys | localhost | | root | localhost | ---------------------------- 4 rows in set (0.00 sec)mysql 此时使用IP访问也可能不成功部分人可能访问数据库成功 部分人可能访问数据库库失败。 如果访问链接失败 再查看my.cnf或者my.ini的配置 查找bind-address参数。将其注释或者修改为0.0.0.0或者服务器的IP地址。如果没有可以手写此配置 [rootlocalhost ~]# cd /etc [rootlocalhost etc]# [rootlocalhost etc]# ls adjtime ethertypes ld.so.cache plymouth crypttab hostname my.cnf resolv.conf tuned csh.cshrc hosts my.cnf.d rpc udev[mysqld] # # Remove leading # and set to the amount of RAM for the most important data # cache in MySQL. Start at 70% of total RAM for dedicated server, else 10%. # innodb_buffer_pool_size 128M # datadir/var/lib/mysql socket/var/lib/mysql/mysql.sock bind-address0.0.0.0# Disabling symbolic-links is recommended to prevent assorted security risks symbolic-links0log-error/var/log/mysqld.log pid-file/var/run/mysqld/mysqld.pid到此又会有部分人访问数据库成功 部分人访问数据库仍然失败 如果还是悲剧的这部分人还需要查看防火墙设置Linux系统中防火墙iptables可能会阻止MySQL的外部访问。使用下面的命令查看 [rootlocalhost etc]# sudo iptables -L Chain INPUT (policy ACCEPT) target prot opt source destination ACCEPT tcp -- anywhere anywhere tcp dpt:cslistener ACCEPT all -- anywhere anywhere ctstate RELATED,ESTABLISHED......略 此时列表中如果没有mysql 信息那么可以执行下面的命令允许外部访问Myslq, 其中dport 指定3306 3306是MySQL的默认端口。执行后再使用sudo iptables -L查看会出现mysql访问信息。如下 [rootlocalhost etc]# sudo iptables -I INPUT -p tcp --dport 3306 -j ACCEPT [rootlocalhost etc]# [rootlocalhost etc]# sudo iptables -L Chain INPUT (policy ACCEPT) target prot opt source destination ACCEPT tcp -- anywhere anywhere tcp dpt:mysql ACCEPT tcp -- anywhere anywhere tcp dpt:cslistener ACCEPT all -- anywhere anywhere ctstate RELATED,ESTABLISHED......略 最后重启MySQL后就可以访问MySQL数据库了 上一篇Linux 安装MySQL-5.7.30
http://www.hkea.cn/news/14584124/

相关文章:

  • 网站授权系统怎么用wordpress标题图片代码
  • 怎么做网站背景图枣阳网站开发公司哪家好
  • 权重查询爱站网网站首页被挂黑链
  • 郑州模板建站平台齐三seo顾问
  • 长沙建长沙建网站公司用别人的照片做网站
  • 六安网站推广获客app电子商务安全问题 网站权限管理
  • 无锡做网站、网站经营性备案流程
  • 网站开发实习生中国旅游预订网站的建设始于哪一年
  • 路桥建设网站百度品牌专区
  • 泉州手机模板建站兴义做网站的公司
  • 番禺网站开发费用wordpress调整边栏
  • 网站开发应如何入账网盘做网站服务器
  • 马鞍山网站建设开发韩国还有机会出线吗
  • 广州番禺桥南做网站美容整形网站建设
  • 移动端网站开发注意些什么wordpress新页面404
  • 海口省建设厅网站国外贸易平台
  • wordpress 企业网站 免费flv网站建设
  • 浙江和海建设集团网站怎么从网上找客户
  • 网址导航主页哪个好seo整站优化公司
  • 做网页引用别的网站的视频做网站用什么后台
  • 深圳教育网站建设html5标准网站建设
  • 站长素材网app免费下载网站app的区别是什么
  • 如何创建一个企业搜索引擎优化的实验结果分析
  • 怎么做中英文的网站城乡厅建设部网站
  • 网站建设1993seo个人简历最佳范文
  • 淘客网站怎么备案广州网站建设推广
  • 果麦传媒的网站怎么做的专业做网站排名的人
  • 湟源县公司网站建设电子商务网站的建设
  • 大连seo建站公司小规模企业所得税优惠政策
  • 网站 优化 件营销型网站价格