Caused by: java.sql.SQLException: Access denied for user 'root'@'192.168.6.131' (using password: YES),远程连接数据库,连接不上解决方案

进入 mysql   ;

use mysql;

然后 执行

GRANT ALL PRIVILEGES ON *.* TO [email protected]"你.的.端.口" IDENTIFIED BY "你的密码" WITH GRANT OPTION;

FLUSH PRIVILEGES;

然后成功

Caused by: java.sql.SQLException: Access denied for user 'root'@'192.168.6.131' (using password: YES),远程连接数据库,连接不上解决方案

原文地址:https://www.cnblogs.com/Cdzdyhe/p/10214358.html

时间: 2024-10-16 01:55:07

Caused by: java.sql.SQLException: Access denied for user 'root'@'192.168.6.131' (using password: YES),远程连接数据库,连接不上解决方案的相关文章

java.sql.SQLException: Access denied for user 'root'@'10.10.7.180' (using password: YES)

1.刚开始连接数据库提示是: java.sql.SQLException: Access denied for user 'root'@'10.10.7.180' (using password: NO) 于是,我设置了root的密码:mysqladmin -u root password "newpwd". 注:shell> mysqladmin -u root -h host_name password "newpwd"password后面的双引号不是必须

【异常】连接MySQL权限异常SQLException: Access denied for user 'root'@'192.168.xxx.xxx' (using password: YES)

IDEA程序访问Mysql,出现权限异常.SQLException: Access denied for user 'root'@'192.168.119.1' (using password: YES)应该是mysql中的库.表等对特定的用户.特定的ip开放,所以可以修改一下,在mysql中执行:grant all privileges on *.* to [email protected]'%' identified by '123456';表示root用户可以在任何ip都可以访问任何库,密

java.sql.SQLException: Access denied for user 'root'

程序在连接远程 mysql服务器时出错 java.sql.SQLException: Access denied for user 'root'@'192.168.27.129' (using password: YES) 本机IP为'192.168.27.129' 进入mysql命令行: MySQL>use mysql; MySQL>select host,user from user; 查看得信息如下,也没有限制不让本机连接mysql呢. +-----------------------+

idea启动报错:Access denied for user 'root '@'192.168.100.206' (using password: YES)

Caused by: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'sysUserMapper' defined in file [D:\workspace\b2b_refactor\b2b_refactor\target\classes\com\zj\web\system\mapper\SysUserMapper.class]: Unsatisfi

连接mysql时提示java.sql.SQLException: Access denied for user 'root'@'DESKTOP-N2B2D9A' (using password: YES)

用root连接mysql时提示:访问被拒绝 检查一下mysql server是否开启,发现后台在运行着..  然后查了一下mysql的用户表,发现root只能运行使用本地ip(localhost或者127.0.0.1)进行连接 解决方法:新开一个权限GRANT ALL PRIVILEGES ON *.* TO 'root'@'%' IDENTIFIED BY 'jeffw' WITH GRANT OPTION; 然后查询一下:select * from user; 新开的root的已经开启权限,

MySQL java连接被拒绝:java.sql.SQLException: Access denied for user 'root'@'****' (using password: YES)

java.sql.SQLException: Access denied for user 'root'@'***.**.**.**' (using password: YES) MySQL服务器部署在Linux上,错误中被我隐掉的是我的公网IP. 这是由于"IP为***.**.**.**,名字为root"的用户 没有权限访问数据库 解决办法: 通过Navicat连接数据库,执行下面内容: grant all privileges on *.* to [email protected]

使用mybatis生成相关文件时java.sql.SQLException: Access denied for user 'root'@'localhost' (using password)

问题:使用mybatis生成相关文件时,dos显示java.sql.SQLException: Access denied for user 'root'@'localhost' (using password) 解决方式:1,先检查数据库的配置文件密码是否错误, 2,检查mybatis-generator.xml的密码是否与数据库的密码相等,因为这个文件的密码不会影响到后台的数据,所以最容易被忽略,造成后台数据可以正常读取,而mybatis却不能生成相关的文件. 使用mybatis生成相关文件

[Spring MVC - 2A] - java.sql.SQLException: Access denied for user 'root'@'localhost' (using password: YES)

严重: Servlet.service() for servlet [springMVC] in context with path [/ExceptionManageSystem] threw exception [Request processing failed; nested exception is org.mybatis.spring.MyBatisSystemException: nested exception is org.apache.ibatis.exceptions.Pe

java.sql.SQLException: Access denied for user 'root'@'localhost' (using password:YES)

各种错误一大堆啊,走了一个又来一个,继续吧 java.sql.SQLException: Access denied for user 'root'@'localhost' (using password: YES)        at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:946)        at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:2985)