mysql 密码清楚_mysql 密码清除

news/2024/7/3 0:45:30

安装了一个Mysql ,安装完成时提示:PLEASE REMEMBER TO SET A PASSWORD FOR THE MySQL root USER !To do so, start the server, then issue the following commands:/usr/bin/mysqladmin -u root password 'new-password'/usr/bin/mysqladmin -u root -h localhost.localdomain password 'new-password'Alternatively you can run:/usr/bin/mysql_secure_installationwhich will also give you the option of removing the testdatabases and anonymous user created by default.  This isstrongly recommended for production servers.See the manual for more instructions.Please report any problems with the /usr/bin/mysqlbug script!The latest information about MySQL is available on the web athttp://www.mysql.comSupport MySQL by buying support/licenses at http://shop.mysql.comNotes regarding SELinux on this platform:=========================================The default policy might cause server startup to fail because it isnot allowed to access critical files. In this case, please updateyour installation.The default policy might also cause inavailability of SSL relatedfeatures because the server is not allowed to access /dev/randomand /dev/urandom. If this is a problem, please do the following:1) install selinux-policy-targeted-sources from your OS vendor2) add the following two lines to /etc/selinux/targeted/src/policy/domains/program/mysqld.te:allow mysqld_t random_device_t:chr_file read;allow mysqld_t urandom_device_t:chr_file read;3) cd to /etc/selinux/targeted/src/policy and issue the following command:make loadStarting MySQL..[  OK  ]Giving mysqld 2 seconds to startSS的就运行了一下

/usr/bin/mysqladmin -u root password

输入的密码没有加单引号,就再也登录不进来了,重新安装也没有解决,

后来locate mysql|grep data找到数据文件夹,把它删除了,然后再重新安装,输入密码时加上了单引号,象是可以了.


http://lihuaxi.xjx100.cn/news/245814.html

相关文章

解决oracle11g安装导致数据库无法自动搜集统计信息-转

近期发现个别11G数据库无法自动收集统计信息,部分视图查询结果如下: SQL> select client_name,status from dba_autotask_client where client_name auto optimizer stats collection;CLIENT_NAME STATUS -----------------------------------------…

APICloud:让你的APP边框显示原生的1px

2019独角兽企业重金招聘Python工程师标准>>> APICloud无疑已是相当火的APP开发工具了,面对从web到移动APP转变的开发者可能有很多小常识并不是特别熟悉,比如这个border。怎样让1px更细,看起来像原生的?下面教大家一个方…

pynput使用简单说明

控制鼠标 1 from pynput.mouse import Button, Controller2 import time 3 4 mouse Controller()5 print(mouse.position)6 time.sleep(3)7 print(The current pointer position is {0}.format(mouse.position))8 9 10 #set pointer positon 11 mouse.position (277, 645) …

git revert和git reset的区别

git revert 是撤销某次操作,此次操作之前的commit都会被保留git reset 是撤销某次提交,但是此次之后的修改都会被退回到暂存区具体一个例子,假设有三个commit, git st:commit3: add test3.ccommit2: add test2.ccommit1: add test…

ActiveMQ 消息服务(一)

2019独角兽企业重金招聘Python工程师标准>>> 1、百度百科对ActiveMQ的解释: ActiveMQ 是Apache出品,最流行的,能力强劲的开源消息总线。ActiveMQ 是一个完全支持JMS1.1和J2EE 1.4规范的 JMS Provider实现,尽管JMS规范出…

中小企业低成本快速建站的秘诀——模板建站

从14年至今,小乔已经给很多行业的客户做了不少网站。在跟我咨询建站的这些人当中,其实不乏一些创业初期经济比较紧张的个人/公司。这些个人/公司需要一个网站对外宣传,但又希望可以节省开支,所以他们往往会选择成本低的建站服务&a…

Mysql隐藏命令_mysql常用命令整理

说明:下面用到的语法是参考官方mysql5.7 en manual文档,本机的运行环境为centos7和mysql5.7.26修改数据库语法:ALTER {DATABASE | SCHEMA} [db_name]alter_specification ...ALTER {DATABASE | SCHEMA} db_nameUPGRADE DATA DIRECTORY NAMEal…

linux:关于Linux系统中 CPU Memory IO Network的性能监测

我们知道:系统优化是一项复杂、繁琐、长期的工作.通常监测的子系统有以下这些:CPUMemoryIONetwork下面是常用的监测工具Linux 系统包括很多子系统(包括刚刚介绍的CPU,Memory,IO,Network,等&…