当前位置:网站首页>Linux64Bit下安装MySQL5.6-不能修改root密码
Linux64Bit下安装MySQL5.6-不能修改root密码
2022-04-23 20:18:00 【iBigder】
大家好,我是「Bigder」
Linux64Bit下安装MySQL5.6,本文参考了@IDO老徐的文章
- 1、 首先查看系统自带的Mysql,并卸载自带的版本
yum list installed |grep mysql
- 2、 卸载系统自带的mysql及其依赖,比如:步骤1返回结果:mysql-libs.x86_64,我是第一次安装。步骤1没有数据,如果有执行卸载。
yum -y remove mysql-libs.x86_64
- 3、下载rpm包
wget dev.mysql.com/get/mysql-community-release-el6-5.noarch.rpm --no-check-certificate
- 4、安装下载的rpm
yum localinstall mysql-community-release-el6-5.noarch.rpm
- 5、验证是否安装成功
yum repolist all | grep mysql
- 6、安装mysql服务
[[email protected] ~]# yum install mysql-community-server
- 7、查看mysql当前状态,没有启动
service mysqld status
[[email protected] ~]# service mysqld status
mysqld.service - SYSV: MySQL database server.
Loaded: loaded (/etc/rc.d/init.d/mysqld; bad; vendor preset: disabled)
Active: inactive (dead)
Docs: man:systemd-sysv-generator(8)
- 8、启动MySQL
service mysqld start
- 9、再查看mysql服务状态(已经启动)
[[email protected] ~]# service mysqld start
- 10、查看mysql5.6的默认密码,密码为空
grep 'temporary password' /var/log/mysqld.log
- 11、命令行模式登录mysql ,修改密码
mysql -u root -p
输入上面命令后,直接回车(5.6版本、默认密码为空)
- 12、查看当前数据库
show databases;
- 13、修改root密码,我这里root密码使用:「bigder#1314」
5.6版本这里用alert user命令报错
alter user [email protected] identified by "bigder#1314";
换下面的命令修改root登陆密码,注意引号都是英文输入法下的单引号。
update mysql.user set password=PASSWORD('bigder#1314') where User='root';
生效命令修改
mysql> flush privileges;Query OK, 0 rows affected (0.00 sec)
Bigder 软件测试、测试管理、职场、简历建议经验,助力测试初级测试岗进综合能力提升。 77篇原创内容 公众号
14、创建一个新的数据库「Bigder」
create DATABASE Bigder;
-
15、查看数据库是否创建成功:
-
show DATABASE;
成了Mysql5.6全部安装全部安装成功,你也试试!分享转发三倍工资!!!
以上,
Bigder
版权声明
本文为[iBigder]所创,转载请带上原文链接,感谢
https://blog.csdn.net/unit2006/article/details/124367814
边栏推荐
- WordPress plug-in: WP CHINA Yes solution to slow domestic access to the official website
- R language ggplot2 visualization: ggplot2 visualizes the scatter diagram and uses geom_ mark_ The ellipse function adds ellipses around data points of data clusters or data groups for annotation
- An error is reported when sqoop imports data from Mysql to HDFS: sqlexception in nextkeyvalue
- 【2022】将3D目标检测看作序列预测-Point2Seq: Detecting 3D Objects as Sequences
- 【目标跟踪】基于帧差法结合卡尔曼滤波实现行人姿态识别附matlab代码
- PCL点云处理之计算两平面交线(五十一)
- 腾讯邱东洋:深度模型推理加速的术与道
- R语言使用timeROC包计算无竞争风险情况下的生存资料多时间AUC值、使用confint函数计算无竞争风险情况下的生存资料多时间AUC指标的置信区间值
- Building googlenet neural network based on pytorch for flower recognition
- WordPress插件:WP-China-Yes解决国内访问官网慢的方法
猜你喜欢
[text classification cases] (4) RNN and LSTM film evaluation Tendency Classification, with tensorflow complete code attached
Fundamentals of programming language (2)
aqs的学习
【文本分类案例】(4) RNN、LSTM 电影评价倾向分类,附TensorFlow完整代码
SQL Server Connectors By Thread Pool | DTSQLServerTP plugin instructions
Sqoop imports tinyint type fields to boolean type
STM32 Basics
MySQL 进阶 锁 -- MySQL锁概述、MySQL锁的分类:全局锁(数据备份)、表级锁(表共享读锁、表独占写锁、元数据锁、意向锁)、行级锁(行锁、间隙锁、临键锁)
After route link navigation, the sub page does not display the navigation style problem
Fundamentals of network communication (LAN, Wan, IP address, port number, protocol, encapsulation and distribution)
随机推荐
論文寫作 19: 會議論文與期刊論文的區別
Alicloud: could not connect to SMTP host: SMTP 163.com, port: 25
How about CICC fortune? Is it safe to open an account
Rédaction de thèses 19: différences entre les thèses de conférence et les thèses périodiques
Mysql database backup scheme
Five minutes to show you what JWT is
Error reported by Azkaban: Azkaban jobExecutor. utils. process. ProcessFailureException: Process exited with code 64
Investigate why close is required after sqlsession is used in mybatties
Computing the intersection of two planes in PCL point cloud processing (51)
Local call feign interface message 404
[target tracking] pedestrian attitude recognition based on frame difference method combined with Kalman filter, with matlab code
Research on open source OCR engine
Paper writing 19: the difference between conference papers and journal papers
MySQL advanced lock - overview of MySQL locks and classification of MySQL locks: global lock (data backup), table level lock (table shared read lock, table exclusive write lock, metadata lock and inte
Numpy - creation of data type and array
WordPress插件:WP-China-Yes解决国内访问官网慢的方法
How to do product innovation—— Exploration of product innovation methodology I
R语言使用caret包的preProcess函数进行数据预处理:对所有的数据列进行BoxCox变换处理(将非正态分布数据列转换为正态分布数据、不可以处理负数)、设置method参数为BoxCox
Azkaban recompile, solve: could not connect to SMTP host: SMTP 163.com, port: 465 [January 10, 2022]
selenium.common.exceptions.WebDriverException: Message: ‘chromedriver‘ executable needs to be in PAT