mysql报错:1130 -host 'localhost' is not allowed to connect to this mysql server

解决 Navicat 无法连接 Mysql 数据库(1130-host ... is not allowed to connect to this MySql server) 文章目录1. 检查防火墙端口2. 改表法3. 授权法 原因:说明所连接的用户帐号没有远程连接的权限,只能在本机(localhost)登录。 1. 检查防火墙端口 防火墙可关闭直接关闭防火墙 systemctl stop firewalld 不能关闭防火墙开放 Mysql 数据库 3306 端口(如果端口被修改开放相应端口) firewall-cmd --zone=public --add-port=3306/tcp --permanent firewall-cmd --reload #重载防火 阅读详情

错误提示:1130 -host ‘localhost’ is not allowed to connect to this mysql server

原因:手贱把mysql数据库系统中mysql数据库给删了

解决办法:

首先关闭mysql服务,
其次打开一个终端输入:mysqld –skip-grant-tables
这里写图片描述
最后再打开一个终端输入:mysqlcheck –check-upgrade –all-databases –auto-repair
这里写图片描述

之后就可以连上数据库了。

注意:

该操作会把存储过程、函数、保存的一些查询代码删掉,被删除的查询语句再重新载入即可,不过表文件是没有问题的。

载入,在新建查询中
这里写图片描述

保存的SQL语句,我的是在:
这里写图片描述

mysql error 1130 hy000:Host’localhost’解决方案 ERROR 1130 (HY000): Host ‘localhost’ is not allowed to connect to this MySQL server www.jb51.net 出现原因: mysql只有一个root用户,修改root密码后选了MD5,提交后,重新 登陆出现“Host ‘localhost’ is not allowed to connect to this MySQL server…” 尝试另一个mysql库中的user表,覆盖,不行,估计是版本不同 解决: 编辑 my.ini 在[mysqld]的段中加上一句:skip-grant-tables 例如: Ja 立即下载

相关推荐

旋转矩阵的左乘与右乘

旋转矩阵左右乘的详细讲解

qq_46619194的博客 3327

ERROR 1130 (HY000): Host ‘localhost‘ is not allowed to connect to this MySQL server

mysql 版本 5.6.24 安装环境 windows ERROR 1130 (HY000) 这个错误,表示 当前主机没有权限 连接 到mysql 服务。 如果是自己 本地 windows 安装的,用来自己学习使用,那么可以用这个方法: 第一步: 首先 关闭 mysql 服务 计算机管理---服务 找到mysql ,关闭就可以了 第二步: CMD打开: 执行 mysqld --skip-grant-tables 这样就可以正常连接mysql了。 第三步: 更新 mys

htydowd的博客 8148

STM32F407 步进电机S形曲线加减速

步进电机

smallerlang的博客 1590

ERROR 1130 (HY000): Host ‘localhost’ is not allowed to connect to this MySQL server

网上找了很多方法,控制台输入以下命令进不去了。(账号、密码:root)二、打开一个终端(window键+R,然后输入cmd)一、首先停止mysql服务。三、另开一个终端,继续。四、进入SQL控制台。

qq_45892833的博客 2958

影刀RPA进阶:Excel多条件筛选与数据提取实战

本文详细介绍了如何利用影刀RPA实现Excel多条件筛选与数据提取的自动化。通过拆解文本、数值、日期及颜色筛选等核心指令,并结合实战案例,指导用户构建稳健的销售数据提取机器人,从而高效处理复杂数据报表,提升工作效率。

onion的博客 527

基于openwrt平台搭建局域网技术验证之四

1、测试目的 验证l2tp客户端模式的可行性。 提供vpn-l2tp模式的客户端功能。 2、参考资料 参考链接1:https://www.lucktang.com/191.html 3、测试过程 测试过程需要用到的资源: 路由器俩个 win7系统电脑俩台 ③ 交换机一个 ④ 网线三根 测试组网如下图所示: 组网说明: R0公司路由器 S1 交换机 R1 路由器1 R2 路由器2 PC1 个人电脑1 PC2 个人电脑2 (R0) lan口接(S1)...

caofengtao1314的专栏 1960

mysql远程连接:ERROR 1130 (HY000): Host ‘localhost‘ is not allowed to connect to this MySQL server解决办法

原因分析 根本原因:数据库访问权限被拒绝。 原因1:mysql设置仅允许本地访问 原因2:mysql数据库database文件的访问权限被限制。 原因1的解决方法: 由于设置了hosts文件,导致计算机将localhost识别为自己的ip,而mysql,尤其是phpmyadmin的mysql默认设置了仅允许localhost访问,导致此错误 ERROR 1130 (HY000): Host 'localhost' is not allowed to connect to this MySQL server

wwppp987的博客 6395

广义平均(Generalized Mean, GeM)

本位介绍了广义平均操作的定义和简要推导,帮助大家理解其含义。

qq_45802280的博客 4547

mysql 连接服务器报ERROR 1130 ,mysql服务正常运行

今天办公电脑的mysql罢工了,折腾了半天,记录一下。 错误如下: ERROR 1130 (HY000): Host 'localhost' is not allowed to connect to this MariaDB server 网上查询原因: mysql只有一个root用户,修改root密码后选了MD5,提交后,重新登陆出现“Host 'localhost' is not al...

weixin_34007886的博客 1662

从0到1搭建StarRocks3.4.1存算一体架构(VM 虚拟机版)

本文详细介绍了如何在VM虚拟机上从零搭建StarRocks 3.4.1存算一体架构。首先阐述了StarRocks作为高性能分布式SQL数据仓库的优势,重点讲解了其存算一体架构的设计原理。随后提供完整的安装指南,包括环境准备(3台CentOS 8虚拟机配置)、网络互通验证、Java环境配置、软件包解压安装等关键步骤。文章特别详细说明了FE和BE节点的配置文件修改(fe.conf和be.conf)以及必要的防火墙端口开放配置。通过图文并茂的方式,帮助开发者和运维人员快速掌握StarRocks集群部署方法,为后续

小 tom的博客 1327

YOLO 系列专栏(二十九)YOLO26 × StarNet 轻量化涨点方案(CVPR 2024)轻量化、主干改进篇 | 星星卷积虽小,却蕴藏着巨大的高效潜力

StarNet 出自 CVPR 2024 轻量化主干网络工作,核心创新是,依靠逐元素乘法实现高阶特征融合,在几乎不增加参数量与 FLOPs 的前提下,大幅提升特征表达能力,天然适合等多任务统一建模。本文将 StarNet 完整替换 YOLO26 原有主干,保留 YOLO26 无 NMS 检测头与轻量化结构,实现,并提供。

qq_36130719的博客 409

Navicat连接MySQL数据库提示(1130-host ... is not allowed to connect to this MySql server)

navicat连接mysql错误

六六的小帅的博客 5764

ABAP CDS Time Functions 全面解析:用 TIMS_IS_VALID 护航时刻字段的正确性

摘要:本文深入解析ABAP CDS时间函数TIMS_IS_VALID的应用,重点介绍其在企业系统时间字段校验中的关键作用。文章指出无效时间数据会导致业务流程混乱,而CDS层校验能有效减少重复逻辑。详细说明TIMS类型格式要求、空值处理规则,并提供两种工程实现方案:在CDS视图中直接派生校验列,或通过ABAP SQL在内存表中批量验证。最后给出可直接运行的代码示例,包括一个ABAP报表演示内存表验证,以及一个CDS View Entity实现系统时间自动映射与校验,帮助开发者在业务场景中快速落地时间校验功能。

2007 年 ~ 2025 年,深耕 SAP 技术 18 年 193

MySQL Error 1130 Host 'localhost' is not allowed to connect to this MySQL server

我用的是navicat可视化界面操作MySQL出现这个错误后我查了好多资料但是大部分结局问题的方式都一样,我的直接从dos下输入密码就出错,所以很多解决方案都不好用,最后只能重装,但是重装中又遇到卸载问题,卸载不完全的差错,又查了些资料,是有些就是卸载不干净,主要是有些隐藏文件没有删除的原因,把C:\ProgramData\MySQL这个文件删除掉后就解决了问题。我的重装就完成了,然后就用网上提到

imhml1987的专栏 428

VB摄像头监控

该VB模块可对摄像头捕获的画面进行录像等,可在创建的窗口进行控制

蓝牙模块HM-10手册

蓝牙模块HM-10手册,该手册对蓝牙模块HM-10进行了详细的介绍和使用方法以及一些AT指令。

1130 - Host 'localhost' is not allowed to connect to this MySQL server

打开Win7上的Navicat for MySQL后,连接localhost时,提示错误: 其解决方法是:   打开c:/Program Files/MySQL/MySQL Server 5.5下的my.ini文件,查看是否在在[mysqld]的段中存在: skip-grant-tables 。 如果没有,添加即可。   目的是跳过MySQL的访问控制,任何人都可以在控制...

all36426的博客 118

深度学习工具包 DeepLearningToolbox

深度学习工具包Deprecation notice.-----This toolbox is outdated and no longer maintained.There are much better tools available for deep learning than this toolbox, e.g. [Theano](http://deeplearning.net/software/theano/), [torch](http://torch.ch/) or [tensorflow](http://www.tensorflow.org/)I would suggest you use one of the tools mentioned above rather than use this toolbox.Best, Rasmus.DeepLearnToolbox================A Matlab toolbox for Deep Learning.Deep Learning is a new subfield of machine learning that focuses on learning deep hierarchical models of data.It is inspired by the human brain's apparent deep (layered, hierarchical) architecture.A good overview of the theory of Deep Learning theory is[Learning Deep Architectures for AI](http://www.iro.umontreal.ca/~bengioy/papers/ftml_book.pdf)For a more informal introduction, see the following videos by Geoffrey Hinton and Andrew Ng.* [The Next Generation of Neural Networks](http://www.youtube.com/watch?v=AyzOUbkUf3M) (Hinton, 2007)* [Recent Developments in Deep Learning](http://www.youtube.com/watch?v=VdIURAu1-aU) (Hinton, 2010)* [Unsupervised Feature Learning and Deep Learning](http://www.youtube.com/watch?v=ZmNOAtZIgIk) (Ng, 2011)If you use this toolbox in your research please cite [Prediction as a candidate for learning deep hierarchical models of data](http://www2.imm.dtu.dk/pubdb/views/publication_details.php?id=6284)```@MASTERSTHESIS\{IMM2012-06284, author = "R. B. Palm", title = "Prediction as a candidate for learning deep hierarchical models of data", year = "2012",}```Contact: rasmusbergpalm at gmail dot comDirectories included in the toolbox-----------------------------------`NN/` - A library for Feedforward Backpropagation Neural Networks`CNN/` - A library for Convolutional Neural Networks`DBN/` - A library for Deep Belief Networks`SAE/` - A library for Stacked Auto-Encoders`CAE/` - A library for Convolutional Auto-Encoders`util/` - Utility functions used by the libraries`data/` - Data used by the examples`tests/` - unit tests to verify toolbox is workingFor references on each library check REFS.mdSetup-----1. Download.2. addpath(genpath('DeepLearnToolbox'));Example: Deep Belief Network---------------------```matlabfunction test_example_DBNload mnist_uint8;train_x = double(train_x) / 255;test_x = double(test_x) / 255;train_y = double(train_y);test_y = double(test_y);%% ex1 train a 100 hidden unit RBM and visualize its weightsrand('state',0)dbn.sizes = [100];opts.numepochs = 1;opts.batchsize = 100;opts.momentum = 0;opts.alpha = 1;dbn = dbnsetup(dbn, train_x, opts);dbn = dbntrain(dbn, train_x, opts);figure; visualize(dbn.rbm{1}.W'); % Visualize the RBM weights%% ex2 train a 100-100 hidden unit DBN and use its weights to initialize a NNrand('state',0)%train dbndbn.sizes = [100 100];opts.numepochs = 1;opts.batchsize = 100;opts.momentum = 0;opts.alpha = 1;dbn = dbnsetup(dbn, train_x, opts);dbn = dbntrain(dbn, train_x, opts);%unfold dbn to nnnn = dbnunfoldtonn(dbn, 10);nn.activation_function = 'sigm';%train nnopts.numepochs = 1;opts.batchsize = 100;nn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.10, 'Too big error');```Example: Stacked Auto-Encoders---------------------```matlabfunction test_example_SAEload mnist_uint8;train_x = double(train_x)/255;test_x = double(test_x)/255;train_y = double(train_y);test_y = double(test_y);%% ex1 train a 100 hidden unit SDAE and use it to initialize a FFNN% Setup and train a stacked denoising autoencoder (SDAE)rand('state',0)sae = saesetup([784 100]);sae.ae{1}.activation_function = 'sigm';sae.ae{1}.learningRate = 1;sae.ae{1}.inputZeroMaskedFraction = 0.5;opts.numepochs = 1;opts.batchsize = 100;sae = saetrain(sae, train_x, opts);visualize(sae.ae{1}.W{1}(:,2:end)')% Use the SDAE to initialize a FFNNnn = nnsetup([784 100 10]);nn.activation_function = 'sigm';nn.learningRate = 1;nn.W{1} = sae.ae{1}.W{1};% Train the FFNNopts.numepochs = 1;opts.batchsize = 100;nn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.16, 'Too big error');```Example: Convolutional Neural Nets---------------------```matlabfunction test_example_CNNload mnist_uint8;train_x = double(reshape(train_x',28,28,60000))/255;test_x = double(reshape(test_x',28,28,10000))/255;train_y = double(train_y');test_y = double(test_y');%% ex1 Train a 6c-2s-12c-2s Convolutional neural network %will run 1 epoch in about 200 second and get around 11% error. %With 100 epochs you'll get around 1.2% errorrand('state',0)cnn.layers = { struct('type', 'i') %input layer struct('type', 'c', 'outputmaps', 6, 'kernelsize', 5) %convolution layer struct('type', 's', 'scale', 2) %sub sampling layer struct('type', 'c', 'outputmaps', 12, 'kernelsize', 5) %convolution layer struct('type', 's', 'scale', 2) %subsampling layer};cnn = cnnsetup(cnn, train_x, train_y);opts.alpha = 1;opts.batchsize = 50;opts.numepochs = 1;cnn = cnntrain(cnn, train_x, train_y, opts);[er, bad] = cnntest(cnn, test_x, test_y);%plot mean squared errorfigure; plot(cnn.rL);assert(er<0.12, 'Too big error');```Example: Neural Networks---------------------```matlabfunction test_example_NNload mnist_uint8;train_x = double(train_x) / 255;test_x = double(test_x) / 255;train_y = double(train_y);test_y = double(test_y);% normalize[train_x, mu, sigma] = zscore(train_x);test_x = normalize(test_x, mu, sigma);%% ex1 vanilla neural netrand('state',0)nn = nnsetup([784 100 10]);opts.numepochs = 1; % Number of full sweeps through dataopts.batchsize = 100; % Take a mean gradient step over this many samples[nn, L] = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.08, 'Too big error');%% ex2 neural net with L2 weight decayrand('state',0)nn = nnsetup([784 100 10]);nn.weightPenaltyL2 = 1e-4; % L2 weight decayopts.numepochs = 1; % Number of full sweeps through dataopts.batchsize = 100; % Take a mean gradient step over this many samplesnn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.1, 'Too big error');%% ex3 neural net with dropoutrand('state',0)nn = nnsetup([784 100 10]);nn.dropoutFraction = 0.5; % Dropout fraction opts.numepochs = 1; % Number of full sweeps through dataopts.batchsize = 100; % Take a mean gradient step over this many samplesnn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.1, 'Too big error');%% ex4 neural net with sigmoid activation functionrand('state',0)nn = nnsetup([784 100 10]);nn.activation_function = 'sigm'; % Sigmoid activation functionnn.learningRate = 1; % Sigm require a lower learning rateopts.numepochs = 1; % Number of full sweeps through dataopts.batchsize = 100; % Take a mean gradient step over this many samplesnn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.1, 'Too big error');%% ex5 plotting functionalityrand('state',0)nn = nnsetup([784 20 10]);opts.numepochs = 5; % Number of full sweeps through datann.output = 'softmax'; % use softmax outputopts.batchsize = 1000; % Take a mean gradient step over this many samplesopts.plot = 1; % enable plottingnn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.1, 'Too big error');%% ex6 neural net with sigmoid activation and plotting of validation and training error% split training data into training and validation datavx = train_x(1:10000,:);tx = train_x(10001:end,:);vy = train_y(1:10000,:);ty = train_y(10001:end,:);rand('state',0)nn = nnsetup([784 20 10]); nn.output = 'softmax'; % use softmax outputopts.numepochs = 5; % Number of full sweeps through dataopts.batchsize = 1000; % Take a mean gradient step over this many samplesopts.plot = 1; % enable plottingnn = nntrain(nn, tx, ty, opts, vx, vy); % nntrain takes validation set as last two arguments (optionally)[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.1, 'Too big error');```[![Bitdeli Badge](https://d2weczhvl823v0.cloudfront.net/rasmusbergpalm/deeplearntoolbox/trend.png)](https://bitdeli.com/free "Bitdeli Badge")

解决ERROR 1130: Host ‘localhost‘ is not allowed to connect to this MySQL server

问题描述 前几天用的mysql8.0.16不知道咋的导致连接数据库出现Host ‘localhost’ is not allowed to connect to this MySQL server。搞了几天也没弄好,百度一大堆彻底删除mysql的方法然后再重装mysql,然后能用了,过了一天又莫名其妙出现同样问题。然后开始找方法。 解决方法 注:以下方法均在管理员身份运行的cmd窗口执行! 方法一:在cmd中进入安装mysql的bin目录下或直接在mysql command命令窗口(一般在开始菜单

qq_45721173的博客 1万+

IEM模型,地表粗糙度模拟

利用微波反演土壤水分时候,利用IEM模型可以实现对随机地表的模拟

解决 Windows 下 MySQL 8.X 1130报错问题 [HY000][1130] Host ‘localhost‘ is not allowed to connect to this ...

解决 Windows 下 MySQL 8.X 1130报错问题 [HY000][1130] Host 'localhost' is not allowed to connect to this ...

Monster060508的博客 1317

MySQL ERROR 1130 HY000 Host localhost not allowed to connect to this MySQL server 进不去mysql

本文总结了MySQL连接错误"ERROR 1130"的完整解决方案。当出现"localhost不被允许连接"时,需更新root用户权限。若跳过权限验证无效,主要原因是:1)缺少data目录;2)权限不足。解决步骤包括:创建data目录、以管理员身份运行命令、检查目录权限。最终通过创建root@localhost用户并授权,刷新权限后成功连接。针对MySQL 5.7和8.0版本分别提供了相应的SQL命令。

m0_74251027的博客 1333

mysql error 1130 hy000:Host 'localhost' is not allowed to connect to this mysql server 解决方案

ERROR 1130 (HY000): Host ‘localhost’ is not allowed to connect to this MySQL server D:\Wamp\mysql-5.6.21\bin>mysql.exe -uroot -p Enter password: ERROR 1130 (HY000): Host 'localhost' is not allowed ...

qq_42682302的博客 2066

解决MySQL ERROR 1130 (HY000): Host 'XXXX' is not allowed to connect to this MySQL server

环境:mysql5.7.11 + windows10 64位 问题现象:使用mysql远程登录命令mysql –uroot –h192.168.1.102 –p时,报错MySQL ERROR 1130 (HY000): Host 'XXXX' is not allowed to connect to this MySQL server 问题原因:mysql服务器出于安全考虑,默认只允许本地登录

HJULKK的专栏 3万+

mysql远程连接报错ERROR 1130 (HY000): Host ‘***‘ is not allowed to connect to this MySQL server

mysql远程使用root连接报错 ERROR 1130 (HY000): Host ‘SC-201703262107’ is not allowed to connect to this MySQL server 说明所连接的用户帐号没有远程连接的权限,只能在服务器本机(localhost)登录。 需更改 mysql 数据库里的 user表里的 host项 把localhost改称% 具体步骤:登陆到MySQL 首先 use mysql; select user,host from user; ±----

zjf_gx的博客 3091

Navicat报错 ERROR 1130 (HY000): Host ‘localhost‘ is not allowed to connect to this MySQL server

ERROR 1130 (HY000): Host ‘localhost’ is not allowed to connect to this MySQL server 网上找了很多方法,控制台输入以下命令进不去了。(账号、密码:root) mysql -u root -proot 都不行,出现错误: “Host ‘localhost’ is not allowed to connect to this MySQL server.” 方法: 一、首先停止mysql服务 方法一 :控制台输入 sc stop

Man_12345的博客 3705

Host 'ip地址' is not allowed to connect to this MySQL server报错解决方法

192.168.1.xxxis not allowed to connect to this mysql server 意思是这个host主机不能访问本机的mysql服务, 需要连接非本机的mysql的时候,默认host是localhost,我们需要将这个mysql连接权限设置成% 更改方法: 在mysql的数据库选择mysql这个数据库,里面有一个user表,进入表中有一个host字段...

仅此而已的日记本 9421

解决Navicat 报错:1130-host ... is not allowed to connect to this MySql server,MySQL不允许从远程访问的方法

<br />解决方法:<br />1。 改表法。<br />可能是你的帐号不允许从远程登陆,只能在localhost。这个时候只要在localhost的那台电脑,登入mysql后,更改 "mysql" 数据库里的 "user" 表里的 "host" 项,从"localhost"改称"%"<br />mysql -u root -pvmwaremysql>use mysql;<br />mysql>update user set host = '%' where user = 'root';<br />mys

佛缘的技术专栏 3万+
上一篇: 使用C3P0报错:java.lang.NoClassDefFoundError: com/mchange/v2/ser/Indirector
下一篇: JDBC(7)—DAO
T_P_F
博客等级 码龄11年 36粉丝 286原创
评论 3
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

个

红包个数最小为10个

元

红包金额最低5元

当前余额3.43元 前往充值 >
需支付:10.00元
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付元
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值