centOS下进入mysql报错-You must SET PASSWORD before executing this statement

解决办法:

mysql>  SET PASSWORD = PASSWORD(‘123456‘);

Query OK, 0 rows affected (0.03 sec)

mysql> create database roger;

Query OK, 1 row affected (0.00 sec)

也就是用mysql>  SET PASSWORD = PASSWORD(‘123456‘);这句话重新设置一次密码!

centOS下进入mysql报错-You must SET PASSWORD before executing this statement

时间: 2025-01-04 07:27:55

centOS下进入mysql报错-You must SET PASSWORD before executing this statement的相关文章

Linux系统下启动MySQL报错:Neither host 'localhost.localdomain' nor 'localhost' could be looked up with

Linux系统下启动MySQL报错:Neither host 'localhost.localdomain' nor 'localhost' could be looked up with 摘要 Linux系统下安装完MySQL,启动MySQL报错:Neither host 'localhost.localdomain' nor 'localhost' could be looked up with... Linux系统下装完MySQL,然后重启动时报错: 解决方法:  查看cat /etc/h

Linux系统下启动MySQL报错:Neither host 'localhost.localdomain' nor 'localhost' could be looked up with

Linux系统下启动MySQL报错:Neither host 'localhost.localdomain' nor 'localhost' could be looked up with 摘要 Linux系统下安装完MySQL,启动MySQL报错:Neither host 'localhost.localdomain' nor 'localhost' could be looked up with... Linux系统下装完MySQL,然后重新启动动时报错: 解决方法:  查看cat /etc

win7下安装MYSQL报错:"MYSQL 服务无法启动"的3534问题

win7下安装MYSQL,只到"net start mysql"这一步报错:3534的错误: 是直接官网下载的压缩文件.不是安装文件. 解决方法: 1:环境变量PATH添加完成(例如:h:\mysql\\bin 2:在mysql目录下,新建data目录. 3:在mysql目录下 新建新建一个默认配置文件my.ini. 内容: [mysql]# 设置mysql客户端默认字符集default-character-set=utf8 [mysqld]#设置3306端口port = 3306 #

lnmp下启动mysql报错 The server quit without updating PID file

启动时候错误代码:Starting MySQL[FAIL.] The server quit without updating PID file (/var/run/mysqld/mysqld.pid). ... failed! lnmp作者军哥给的解答是:     这里面没有任何错误信息,按[FAIL.] The server quit without updating PID file (/var/run/mysqld/mysqld.pid     这个看可能又另外安装了mysql或存在其他

Centos yum 安装mysql报错 No package mysql-server available.

这是因为大多数mysql-*的资源名称被mariadb-*重命名了 所以换成 yum install mariadb-server 就可以了 PS[摘自网络] MariaDB不仅仅是Mysql的一个替代品,它的主要目的是创新和提高Mysql的技术. MySQL之父Widenius先生离开了Sun之后,觉得依靠Sun/Oracle来发展MySQL,实在很不靠谱,于是决定另开分支,这个分支的名字叫做MariaDB.MariaDB跟MySQL在绝大多数方面是兼容的,对于开发者来说,几乎感觉不到任何不同

centos在线安装mysql报错:file /etc/my.cnf conflicts between attempted installs of mysql-community-server-8.0.16-2.el7.x86_64 and MariaDB-common-10.4.6-1.el7.centos.x86_64

错误提示:file /etc/my.cnf conflicts between attempted installs of mysql-community-server-8.0.16-2.el7.x86_64 and MariaDB-common-10.4.6-1.el7.centos.x86_64 由版本冲突导致的 因此执行:yum remove mysql-libs 即可 原文地址:https://www.cnblogs.com/minutes/p/11167717.html

在CentOS中安装32位或64位MySql报错error: Failed dependencies解决办法

在CentOS中安装MySql报错error: Failed dependencies解决办法 安装64位MySql报错内容如下:error: Failed dependencies:        libaio.so.1()(64bit) is needed by MySQL-server-5.6.19-1.el6.x86_64    libaio.so.1(LIBAIO_0.1)(64bit) is needed by MySQL-server-5.6.19-1.el6.x86_64    

CentOS的MySQL报错:Can't connect to MySQL server

原文链接: http://www.centoscn.com/CentosBug/softbug/2015/0622/5709.html 问题描述: 使用客户端远程登录连接基于CentOS 6.5服务器上的Mysql,报错:Can't connect to MySQL server on 'XXX' (13) 解决方法: 通常情况下,可以进行如下设置1. 进入MySQL的控制台# mysql -u root -p 2. 在MySQL的控制台中输入如下命令mysql> grant all privi

远程连接CentOS的MySQL报错:Can't connect to MySQL server on 'XXX' (13)

环境: 系统版本: CentOS release 6.5 (Final) 数据库版本: 5.1.73 问题描述: 使用客户端远程登录连接基于CentOS 6.5服务器上的Mysql,报错:Can't connect to MySQL server on 'XXX' (13) 解决方法: 通常情况下,可以进行如下设置 1. 进入MySQL的控制台 # mysql -u root -p 2. 在MySQL的控制台中输入如下命令 mysql> grant all privileges on *.* t