accesrailshist.dll解压需要密码

ERROR ): Access denied for user root@localhost (using password: NO)
错误描述: Mysql中添加用户之后可能出现登录时提示ERROR ): Access denied for user的错误.删除user.user中值为NULL的,或更新NULL为test 1)delete from user where user is NULL 2)update user set user=&test& where user is NULL.意外的情况: 如果
错误描述: Mysql中添加用户之后可能出现登录时提示ERROR ): Access denied for user的错误.删除user.user中值为NULL的,或更新NULL为test 1)delete from user where user is NULL 2)update user set user=&test& where user is NULL.意外的情况: 如果上述方法没有效果,依然出现空用户,则可以利用图形化用户client删除. 在重装了CentOS后,发觉Mysql一直不好用。 # mysqladmin create dbname 命令老是返回mysqladmin: connect to server at &localhost& failed # mysql -u & &cr&& 也同样返回错误ERROR ): Access denied for user
(using password: NO) # mysql -u root -p Enter password: ERROR ): Access denied for user
(using password: NO) 使用网上介绍的方法修改root用户的密码: # mysqladmin -uroot -p password &newpassword& Enter password: mysqladmin: connect to server at &localhost& failed error: &Access denied for user
(using password: YES)& 现在终于被我找到了解决方法,如下(请先测试方法三,谢谢!): 方法一: # /etc/init.d/mysql stop # mysqld_safe --user=mysql --skip-grant-tables --skip-networking & # mysql -u root mysql mysql& UPDATE user SET Password=PASSWORD(&newpassword&) where USER=&root&; mysql& FLUSH PRIVILEGES; mysql& quit # /etc/init.d/mysql restart # mysql -uroot -p Enter password: &输入新设的密码newpassword& mysql& 方法二: 直接使用/etc/f文件中[client]节提供的用户名和密码: # mysql -udebian-sys-maint -p Enter password: &输入[client]节的密码& mysql& UPDATE user SET Password=PASSWORD(&newpassword&) where USER=&root&; mysql& FLUSH PRIVILEGES; mysql& quit # mysql -uroot -p Enter password: &输入新设的密码newpassword& mysql& 方法三: 这种方法我没有进行过测试,因为我的root用户默认密码已经被我修改过了,那位有空测试一下,把结果告诉我,谢谢! # mysql -uroot -p Enter password: &输入/etc/f文件中[client]节提供的密码& 至此,困惑多时的问题解决了!Posts - 431,
Articles - 0,
Comments - 884
23:33 by 潇湘隐者, ... 阅读,
案例环境:
&&&&&&&&&&&& 操作系统 :Red Hat Enterprise Linux Server release 5.7 (Tikanga) 64 bit
&&&&&&&&& 数据库版本 : Mysql 5.6.19 64 bit
案例介绍:
今天开始学习mysql,遂先安装了Mysql 5.6.19 64bit 版本的数据库,结果安装成功了,但是使用root登录时遇到了ERROR ): Access denied for user 'root'@'localhost' (using password: NO)错误. 如下所示
[root@DB-Server tmp]# rpm -ivh MySQL-server-5.6.19-1.rhel5.x86_64.rpm Preparing...
########################################### [100%]
1:MySQL-server
########################################### [100%][root@DB-Server tmp]# rmp -ivh MySQL-client-5.6.19-1.rhel5.x86_64.rpm -bash: rmp: command not found[root@DB-Server tmp]# rpm -ivh MySQL-client-5.6.19-1.rhel5.x86_64.rpm Preparing...
########################################### [100%]
1:MySQL-client
########################################### [100%][root@DB-Server tmp]# /etc/rc.d/init.d/mysql statusMySQL is not running[FAILED][root@DB-Server tmp]# /etc/rc.d/init.d/mysql startStarting MySQL.[
][root@DB-Server tmp]# mysql -u root -pEnter password: ERROR ): Access denied for user 'root'@'localhost' (using password: NO)[root@DB-Server tmp]# mysql -u root mysqlERROR ): Access denied for user 'root'@'localhost' (using password: NO)
& 安装过程中没有设置过root密码,不清楚root密码,搜索了网上一些资料,大致有下面一些情况:
1:有些博客说root的随机密码位于/root/.mysql_secret中,但是我这个版本根本没有/root/.mysql_secret文件。搜索到一篇文章,大意如下所示(没有确认)。到现在也没有明白,我这个版本为什么没有生成这个文件?
ERROR ): Access denied for user 'root'@'localhost' (using password: NO) :表示没有生成root的临时密码
ERROR ): Access denied for user 'root'@'localhost' (using password: YES) :表示生成了root的临时密码。
2:有些资料说root的默认密码为空,经过确认那是以前的老版本,Mysql 5.6及以后版本出处于安全考虑,root密码已经不为空了。
另外,我在官网论坛居然发现有很多人遇到类似问题
解决方法:
首先停掉mysql服务器
[root@DB-Server init.d]# /etc/rc.d/init.d/mysql stop& Shutting down MySQL..[ OK ]&
然后使用mysqld_safe命令在启动mysql,更新root账号的密码
--skip-grant-tables:不启动grant-tables(授权表),跳过权限控制。
--skip-networking :跳过TCP/IP协议,只在本机访问(从网上有些资料看,这个选项不是必须的。可以不用)
[root@DB-Server init.d]# mysqld_safe --user=mysql --skip-grant-tables --skip-networking &[2] 9396[root@DB-Server init.d]# :59:46 mysqld_safe Logging to '/var/lib/mysql/DB-Server.err'.:59:46 mysqld_safe Starting mysqld daemon with databases from /var/lib/mysql
执行上面命令后,此会话窗口会出现无反应的状态,需要使用CTRL+C中断会话,检查/var/lib/mysql/DB-Server.err日志,发现也无其它异常信息。没有弄明白该会话窗口为啥会出现无响应状态。
tail -200 /var/lib/mysql/DB-Server.err | more& 14:59:41 9346 [Note] Shutting down plugin 'binlog' 14:59:41 9346 [Note] /usr/sbin/mysqld: Shutdown complete&:59:41 mysqld_safe mysqld from pid file /var/lib/mysql/DB-Server.pid ended:59:46 mysqld_safe Starting mysqld daemon with databases from /var/lib/mysql 14:59:47 0 [Warning] TIMESTAMP with implicit DEFAULT value is deprecated. Please use --explicit_defaults_for_timestamp server option (see documentation for more details). 14:59:47 9516 [Note] Plugin 'FEDERATED' is disabled. 14:59:47 9516 [Note] InnoDB: Using atomics to ref count buffer pool pages 14:59:47 9516 [Note] InnoDB: The InnoDB memory heap is disabled 14:59:47 9516 [Note] InnoDB: Mutexes and rw_locks use GCC atomic builtins 14:59:47 9516 [Note] InnoDB: Compressed tables use zlib 1.2.3 14:59:47 9516 [Note] InnoDB: Using Linux native AIO 14:59:47 9516 [Note] InnoDB: Using CPU crc32 instructions 14:59:47 9516 [Note] InnoDB: Initializing buffer pool, size = 128.0M 14:59:47 9516 [Note] InnoDB: Completed initialization of buffer pool 14:59:47 9516 [Note] InnoDB: Highest supported file format is Barracuda. 14:59:47 9516 [Note] InnoDB: 128 rollback segment(s) are active. 14:59:47 9516 [Note] InnoDB: Waiting for purge to start 14:59:47 9516 [Note] InnoDB: 5.6.19 log sequence number 1626087 14:59:47 9516 [Note] /usr/sbin/mysqld: ready for connections.Version: '5.6.19'
socket: '/var/lib/mysql/mysql.sock'
MySQL Community Server (GPL)
[root@DB-Server init.d]# mysql -u root mysqlReading table information for completion of table and column namesYou can turn off this feature to get a quicker startup with -A&Welcome to the MySQL monitor.
Commands end or \g.Your MySQL connection id is 1Server version: 5.6.19 MySQL Community Server (GPL)&Copyright (c) , Oracle and/or its affiliates. All rights reserved.&Oracle is a registered trademark of Oracle Corporation and/or itsaffiliates. Other names may be trademarks of their respectiveowners.&Type '' or '\h' for help. Type '\c' to clear the current input statement.&mysql& select Host, User, Password,password_expired
-& from user
-& where user='root' and host='root' or host='localhost';+-----------+------+-------------------------------------------+------------------+| Host
| User | Password
| password_expired |+-----------+------+-------------------------------------------+------------------+| localhost | root | *A848DE7CCD839E924921BEEDDA0D529E | Y
|+-----------+------+-------------------------------------------+------------------+1 row in set (0.00 sec)&mysql& update user set password=PASSWORD('p12#456')
-& where user='root' and host='root' or host='localhost';Query OK, 1 row affected (0.00 sec)Rows matched: 1
Changed: 1
Warnings: 0
新设置用户或更改密码后需用flush privileges刷新MySQL的系统权限相关表,否则会出现拒绝访问,还有一种方法,就是重新启动mysql服务器,来使新设置生效。
mysql&Query OK, 0 rows affected (0.00 sec)&mysql& quitBye[root@DB-Server init.d]# /etc/rc.d/init.d/mysql restartShutting down MySQL..:02:27 mysqld_safe mysqld from pid file /var/lib/mysql/DB-Server.pid ended[
]Starting MySQL.[
mysqld_safe --user=mysql --skip-grant-tables --skip-networking[root@DB-Server init.d]# mysql -u root pERROR ): Access denied for user 'root'@'localhost' (using password: NO)[root@DB-Server init.d]# mysql -u root -pEnter password: Welcome to the MySQL monitor.
Commands end or \g.Your MySQL connection id is 2Server version: 5.6.19&Copyright (c) , Oracle and/or its affiliates. All rights reserved.&Oracle is a registered trademark of Oracle Corporation and/or itsaffiliates. Other names may be trademarks of their respectiveowners.&Type '' or '\h' for help. Type '\c' to clear the current input statement.&mysql&
另外,如果登录mysql数据库后执行脚本遭遇 ERROR 1820 (HY000): You must SET PASSWORD before executing this statement,可以使用重新设置一次密码即可解决问题.
mysql&set password = password('p12#456');
& 至此问题解决,但是还有不少地方有些疑惑,为啥出现这个错误? 其实这么多资料都只是说了解决方法,但是都回避了问题的原因。
参考资料:
http://huangyifa163./blog/static//
/blog/704337
/view/735ffa41be1e650e52ea995a.html
/sunson/articles/2172086.html
/eric/blog/static//
/likai198981/archive//3002518.html找不到组态王VBA接口AccessHist.dll_组态王吧_百度贴吧
&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&签到排名:今日本吧第个签到,本吧因你更精彩,明天继续来努力!
本吧签到人数:0可签7级以上的吧50个
本月漏签0次!成为超级会员,赠送8张补签卡连续签到:天&&累计签到:天超级会员单次开通12个月以上,赠送连续签到卡3张
关注:1,301贴子:
找不到组态王VBA接口AccessHist.dll
在组态王的安装目录下找不到AccessHist.dll,手册上说就在安装目录下,可是木有啊,有没有人知道?
内&&容:使用签名档&&
保存至快速回贴
为兴趣而生,贴吧更懂你。&或组态王6.5使用手册及帮助[新]_附录BX_百度文库
两大类热门资源免费畅读
续费一年阅读会员,立省24元!
评价文档:
组态王6.5使用手册及帮助[新]_附录BX
组​态​王.使​用​手​册​及​帮​助​[​新​]
阅读已结束,如果下载本文需要使用
想免费下载本文?
把文档贴到Blog、BBS或个人站等:
普通尺寸(450*500pix)
较大尺寸(630*500pix)
你可能喜欢扫扫二维码,随身浏览文档
手机或平板扫扫即可继续访问
组态王6.5使用手册及帮助[新]_附录BX
举报该文档为侵权文档。
举报该文档含有违规或不良信息。
反馈该文档无法正常浏览。
举报该文档为重复文档。
推荐理由:
将文档分享至:
分享完整地址
文档地址:
粘贴到BBS或博客
flash地址:
支持嵌入FLASH地址的网站使用
html代码:
&embed src='/DocinViewer-4.swf' width='100%' height='600' type=application/x-shockwave-flash ALLOWFULLSCREEN='true' ALLOWSCRIPTACCESS='always'&&/embed&
450px*300px480px*400px650px*490px
支持嵌入HTML代码的网站使用
您的内容已经提交成功
您所提交的内容需要审核后才能发布,请您等待!
3秒自动关闭窗口}

我要回帖

更多关于 accesrail 的文章

更多推荐

版权声明:文章内容来源于网络,版权归原作者所有,如有侵权请点击这里与我们联系,我们将及时删除。

点击添加站长微信