简体   繁体   English

找不到 MySql 端口 3306

[英]Can't find MySql port 3306

I am unable to create a localhost MySql database, I am getting an error saying "connection refused".我无法创建本地主机 MySql 数据库,我收到一条错误消息,提示“连接被拒绝”。

I tried to debug the same by:我尝试通过以下方式进行调试:

  • Creating new inbound as well as outbound rule in the firewall setting for port 3306.在端口 3306 的防火墙设置中创建新的入站和出站规则。
  • I have also checked my command prompt for the port 3306 by typing the command 'netstat -an', but it does not even show that port 3306 exists.我还通过键入命令“netstat -an”检查了端口 3306 的命令提示符,但它甚至没有显示端口 3306 存在。
  • And when I typed the command 'netstat -an |当我输入命令'netstat -an | grep -i listen | grep -i 听 | grep -E 3306' it says that grep is not recognized. grep -E 3306' 它说 grep 无法识别。

You need to edit your my.cnf file and make sure you have the port set as in the following line:您需要编辑my.cnf文件并确保您已按照以下行设置端口:

port = 3360

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 无法启动MySQL,3306端口忙 - Can't start MySQL, port 3306 busy 无法通过 3306 端口连接到远程 MYSQL 服务器 - Can't Connect to the remote MYSQL server via 3306 port 为什么找不到已经使用3306端口的服务器 - Why can't I find the server that is already using the 3306 port 3306端口没有收听? 无法远程连接MySQL - Port 3306 not listening? Can't connect to MySQL remotely 即使 mysqld 在端口 3306 上运行,也无法连接到“localhost:3306”上的 MySQL 服务器 - Can't connect to MySQL server on 'localhost:3306' even though mysqld is running on port 3306 xampp mysql不在端口3306上运行 - xampp mysql doesn't run on port 3306 无法打开端口3306进行远程连接 - Can't open port 3306 for remote connection 移动数据库目录 | 无法从本地主机或轮询器通过默认端口 3306 访问 mysql - Moved database dir | Can't acess mysql through default port 3306 from localhost or poller 我无法使用mysql端口号3306访问数据库并在laravel项目中迁移 - I can't access database and migrate in laravel project using port number 3306 for mysql Django-默认端口0而不是3306-无法连接到'127.0.0.1'上的MySQL服务器(61) - Django - default port 0 instead of 3306 - Can't connect to MySQL server on '127.0.0.1' (61)
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM