解决mysql远程连接bug1.登录宝塔修改mysql数据库root账户密码2.ssh终端使用root账户登录mysql> mysql -u root -p
> 输入你的密码后回车3.按顺序一条一条执行如下命令:
===============================start===================================
-- 1. 使用mysql数据库
> use mysql;-- 2. 创建允许远程访问的用户
> CREATE USER 'root'@'%' IDENTIFIED BY 'your_password';-- 3. 授予该用户所有数据库的所有权限
> GRANT ALL PRIVILEGES ON *.* TO 'root'@'%';-- 4. 刷新权限使配置生效
> FLUSH PRIVILEGES;
==========================end====================================4. 然后就可以使用远程软件登录mysql啦
第四个包我试了一下,确实ssh不能用。
第三个包启动目前发现mysql启动异常,望大佬排查解决[呲牙]
日志如下:
2026-01-23T09:28:31.906747Z 0 [Warning] [MY-011070] [Server] 'Disabling symbolic links using --skip-symbolic-links (or equivalent) is the default. Consider not using this option as it' is deprecated and will be removed in a future release.
2026-01-23T09:28:31.906961Z 0 [System] [MY-010116] [Server] /www/server/mysql/bin/mysqld (mysqld 8.0.32) starting as process 15582
2026-01-23T09:28:31.949007Z 1 [System] [MY-013576] [InnoDB] InnoDB initialization has started.
2026-01-23T09:28:32.241170Z 1 [System] [MY-013577] [InnoDB] InnoDB initialization has ended.
2026-01-23T09:28:32.493583Z 0 [ERROR] [MY-011300] [Server] Plugin mysqlx reported: 'Setup of bind-address: '*' port: 33060 failed, `socket()` failed with error: Permission denied(13)'
2026-01-23T09:28:32.493656Z 0 [ERROR] [MY-013597] [Server] Plugin mysqlx reported: 'Value '*' set to `Mysqlx_bind_address`, X Plugin can't bind to it. Skipping this value.'
2026-01-23T09:28:33.178785Z 0 [Warning] [MY-010068] [Server] CA certificate ca.pem is self signed.
2026-01-23T09:28:33.179119Z 0 [System] [MY-013602] [Server] Channel mysql_main configured to support TLS. Encrypted connections are now supported for this channel.
2026-01-23T09:28:33.181136Z 0 [ERROR] [MY-010250] [Server] Failed to create a socket for IPv4 '127.0.0.1': errno: 13.
2026-01-23T09:28:33.181263Z 0 [ERROR] [MY-010255] [Server] Can't create IP socket: Permission denied
2026-01-23T09:28:33.181366Z 0 [ERROR] [MY-010119] [Server] Aborting
2026-01-23T09:28:34.989145Z 0 [System] [MY-010910] [Server] /www/server/mysql/bin/mysqld: Shutdown complete (mysqld 8.0.32) MySQL Community Server - GPL.