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

Windows SQLYog连接不上VMbox Ubuntu2204 的Mysql解决方法

Windows SQLYog连接不上VMbox Ubuntu2204 的Mysql解决方法
解决方法:
1、先检查以下mysql的端口状态

netstat -anp|grep mysql

在这里插入图片描述
如果显示127.0.0.1:3306 则说明需要修改,若为: : :3306,则不用。

在**/etc/mysql/mysql.conf.d/mysqld.cnf**,找到下面这部分,然后注释掉即可。

Instead of skip-networking the default is now to listen only on

localhost which is more compatible and is not less secure.

bind-address = 127.0.0.1

## The MySQL database server configuration file.## One can use all long options that the program supports.# Run program with --help to get a list of available options and with# --print-defaults to see which it would actually understand and use.## For explanations see# http://dev.mysql.com/doc/mysql/en/server-system-variables.html# Here is entries for some specific programs# The following values assume you have at least 32M ram[mysqld]## * Basic Settings#user		= mysql# pid-file	= /var/run/mysqld/mysqld.pid# socket	= /var/run/mysqld/mysqld.sock# port		= 3306# datadir	= /var/lib/mysql# If MySQL is running as a replication slave, this should be# changed. Ref https://dev.mysql.com/doc/refman/8.0/en/server-system-variables.html#sysvar_tmpdir# tmpdir		= /tmp## Instead of skip-networking the default is now to listen only on# localhost which is more compatible and is not less secure.#bind-address		= 127.0.0.1mysqlx-bind-address	= 127.0.0.1## * Fine Tuning#key_buffer_size		= 16M# max_allowed_packet	= 64M# thread_stack		= 256K# thread_cache_size       = -1# This replaces the startup script and checks MyISAM tables if needed# the first time they are touchedmyisam-recover-options  = BACKUP# max_connections        = 151# table_open_cache       = 4000## * Logging and Replication## Both location gets rotated by the cronjob.## Log all queries# Be aware that this log type is a performance killer.# general_log_file        = /var/log/mysql/query.log# general_log             = 1## Error log - should be very few entries.#log_error = /var/log/mysql/error.log## Here you can see queries with especially long duration# slow_query_log		= 1# slow_query_log_file	= /var/log/mysql/mysql-slow.log# long_query_time = 2# log-queries-not-using-indexes## The following can be used as easy to replay backup logs or for replication.# note: if you are setting up a replication slave, see README.Debian about#       other settings you may need to change.# server-id		= 1# log_bin			= /var/log/mysql/mysql-bin.log# binlog_expire_logs_seconds	= 2592000max_binlog_size   = 100M# binlog_do_db		= include_database_name# binlog_ignore_db	= include_database_name

在这里插入图片描述

http://www.lryc.cn/news/158687.html

相关文章:

  • Python中的日期和时间(一)datetime模块
  • qt触控板手势检测
  • 数据库 Redis
  • Linux之权限
  • 【产线故障】线上接口请求过慢如何排查?
  • Increment Selection 插件
  • LeetCode刷题笔记【26】:贪心算法专题-4(柠檬水找零、根据身高重建队列、用最少数量的箭引爆气球)
  • LeetCode:移除元素
  • Spring中的JdbcTemplate的使用
  • 机器学习——boosting之GBDT
  • 如何选择报修管理系统?报修工单管理系统有哪些功能和优势?
  • Matlab图像处理-
  • 数据接口工程对接BI可视化大屏(二)创建BI空间
  • Struts.xml 配置文件说明
  • 阿里巴巴API接口解析,实现获得商品详情
  • 9.(Python数模)(分类模型一)K-means聚类
  • MinIO集群模式信息泄露漏洞(CVE-2023-28432)
  • 【从零单排Golang】第十五话:用sync.Once实现懒加载的用法和坑点
  • 常见注意力机制
  • 解决报错之org.aspectj.lang不存在
  • java之SpringBoot基础篇、前后端项目、MyBatisPlus、MySQL、vue、elementUi
  • golang中如何判断字符串是否包含另一字符串
  • ONNX OpenVino TensorRT MediaPipe NCNN Diffusers ComfyUI
  • java中使用 Integer 和 int 的 含义、使用方法 及之间的区别
  • 点云从入门到精通技术详解100篇-点云的特征检测
  • DOM破坏绕过XSSfilter例题
  • 代码随想录Day_56打卡
  • 高忆管理:六连板捷荣技术或难扛“华为概念股”大旗
  • 「解析」YOLOv5 classify分类模板
  • 交换排序——冒泡排序、快速排序