当前位置:网站首页>Install MySQL 5.0 under Linux 64bit 6 - the root password cannot be modified
Install MySQL 5.0 under Linux 64bit 6 - the root password cannot be modified
2022-04-23 20:24:00 【iBigder】
Hello everyone , I am a 「Bigder」
Linux64Bit Lower installation MySQL5.6, This paper refers to @IDO Lao Xu's article
- 1、 First, check the system's own Mysql, And uninstall the version
yum list installed |grep mysql

- 2、 Unload the system mysql And its dependence , such as : step 1 Return results :mysql-libs.x86_64, This is my first time to install . step 1 No data , If yes, perform uninstall .
yum -y remove mysql-libs.x86_64
- 3、 download rpm package
wget dev.mysql.com/get/mysql-community-release-el6-5.noarch.rpm --no-check-certificate

- 4、 Install the downloaded rpm
yum localinstall mysql-community-release-el6-5.noarch.rpm

- 5、 Verify that the installation was successful
yum repolist all | grep mysql

- 6、 install mysql service
[[email protected] ~]# yum install mysql-community-server

- 7、 see mysql current state , Has not started
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、 start-up MySQL
service mysqld start

- 9、 Check it again mysql Service status ( Has been launched )
[[email protected] ~]# service mysqld start

- 10、 see mysql5.6 The default password for , The password is empty.
grep 'temporary password' /var/log/mysqld.log
- 11、 Login in command line mode mysql , Change Password
mysql -u root -p
After entering the above command , Directly enter (5.6 edition 、 The default password is empty )

- 12、 View the current database
show databases;

- 13、 modify root password , I'm here root Password usage :「bigder#1314」
5.6 This version is used here alert user Command error
alter user [email protected] identified by "bigder#1314";
Change the following command to modify root password , Note that quotation marks are single quotation marks under English input method .
update mysql.user set password=PASSWORD('bigder#1314') where User='root';

Effective order modification
mysql> flush privileges;Query OK, 0 rows affected (0.00 sec)
Bigder software test 、 Test management 、 In the workplace 、 Resume suggestion experience , Help to improve the comprehensive ability of primary testing posts . 77 Original content official account
14、 Create a new database 「Bigder」
create DATABASE Bigder;

-
15、 Check whether the database is created successfully :
-
show DATABASE;

a Mysql5.6 All installed successfully , Try it, too ! Share and forward three times your salary !!!
above ,
Bigder
版权声明
本文为[iBigder]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/04/202204232017499749.html
边栏推荐
- Identification of bolt points in aerial photography based on perception
- bounding box iou
- 考研英语唐叔的语法课笔记
- Automatically fill in body temperature and win10 task plan
- [PTA] l2-011 play with binary tree
- DTMF双音多频信号仿真演示系统
- 如何做产品创新?——产品创新方法论探索一
- Cadence Orcad Capture CIS更换元器件之Link Database 功能介绍图文教程及视频演示
- PIP installation package reports an error. Could not find a version that satisfies the requirement pymysql (from versions: none)
- The flinkcdc reports an error: but this is no longer available on the server
猜你喜欢

Recommend an open source free drawing software draw IO exportable vector graph
![[stack and queue topics] - sliding window](/img/65/a2ce87f1401d7a28d4cce0cc85175f.png)
[stack and queue topics] - sliding window

Rt-1052 learning notes - GPIO architecture analysis

2022DASCTF Apr X FATE 防疫挑战赛 CRYPTO easy_real

Browser - learning notes

What is the difference between a host and a server?

SQL Server Connectors By Thread Pool | DTSQLServerTP 插件使用说明

Commit and ROLLBACK in DCL of 16mysql
![[graph theory brush question-5] Li Kou 1971 Find out if there is a path in the graph](/img/fb/9822cccde4ca39d8066024c09a7349.png)
[graph theory brush question-5] Li Kou 1971 Find out if there is a path in the graph

How to protect ECs from hacker attacks?
随机推荐
Plato farm is one of the four largest online IEOS in metauniverse, and the transaction on the chain is quite high
PCL点云处理之基于PCA的几何形状特征计算(五十二)
6-5 字符串 - 2. 字符串复制(赋值) (10 分)C语言标准函数库中包括 strcpy 函数,用于字符串复制(赋值)。作为练习,我们自己编写一个功能与之相同的函数。
Servlet learning notes
Cadence Orcad Capture CIS更换元器件之Link Database 功能介绍图文教程及视频演示
WordPress plug-in: WP CHINA Yes solution to slow domestic access to the official website
R language survival package coxph function to build Cox regression model, ggrisk package ggrisk function and two_ Scatter function visualizes the risk score map of Cox regression, interprets the risk
How about CICC fortune? Is it safe to open an account
Some basic knowledge of devexpress report development
Computing the intersection of two planes in PCL point cloud processing (51)
Error reported by Azkaban: Azkaban jobExecutor. utils. process. ProcessFailureException: Process exited with code 127
Rédaction de thèses 19: différences entre les thèses de conférence et les thèses périodiques
Commit and rollback in DCL of 16 MySQL
Sqoop imports tinyint type fields to boolean type
selenium.common.exceptions.WebDriverException: Message: ‘chromedriver‘ executable needs to be in PAT
SQL Server Connectors By Thread Pool | DTSQLServerTP 插件使用说明
DTMF dual tone multi frequency signal simulation demonstration system
Monte Carlo py solves the area problem! (save pupils Series)
Tencent Qiu Dongyang: techniques and ways of accelerating deep model reasoning
PIP installation package reports an error. Could not find a version that satisfies the requirement pymysql (from versions: none)