当前位置:网站首页>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
边栏推荐
- Commit and ROLLBACK in DCL of 16mysql
- . Ren -- the intimate artifact in the field of vertical Recruitment!
- [problem solving] 'ASCII' codec can't encode characters in position XX XX: ordinal not in range (128)
- 三十一. `prototype`显示原型属性和`__proto__`隐式原型属性
- [graph theory brush question-4] force deduction 778 Swimming in a rising pool
- Livego + ffmpeg + RTMP + flvjs to realize live video
- Shanghai responded that "flour official website is an illegal website": neglect of operation and maintenance has been "hacked", and the police have filed a case
- Modeling based on catiav6
- Rt-1052 learning notes - GPIO architecture analysis
- Mysql database and table building: the difference between utf8 and utf8mb4
猜你喜欢
Es error: request contains unrecognized parameter [ignore_throttled]
考研英语唐叔的语法课笔记
Mysql database backup scheme
上海回應“面粉官網是非法網站”:疏於運維被“黑”,警方已立案
Recognition of high-speed road signs by Matlab using alexnet
[graph theory brush question-4] force deduction 778 Swimming in a rising pool
Rt-1052 learning notes - GPIO architecture analysis
Operation of numpy array
Notes of Tang Shu's grammar class in postgraduate entrance examination English
【PTA】L1-002 打印沙漏
随机推荐
Three. Based on ply format point cloud voxel model JS upload interface writing
波场DAO新物种下场,USDD如何破局稳定币市场?
The R language uses the timeroc package to calculate the multi time AUC value of survival data without competitive risk, and uses the confint function to calculate the confidence interval value of mul
Redis cache penetration, cache breakdown, cache avalanche
Don't bother tensorflow learning notes (10-12) -- Constructing a simple neural network and its visualization
How do BIM swindlers cheat? (turn)
16MySQL之DCL 中 COMMIT和ROllBACK
SQL Server Connectors By Thread Pool | DTSQLServerTP 插件使用说明
論文寫作 19: 會議論文與期刊論文的區別
【PTA】L1-002 打印沙漏
After route link navigation, the sub page does not display the navigation style problem
Some basic knowledge of devexpress report development
JDBC tool class jdbcconutil gets the connection to the database
Commit and ROLLBACK in DCL of 16mysql
Fundamentals of network communication (LAN, Wan, IP address, port number, protocol, encapsulation and distribution)
selenium. common. exceptions. WebDriverException: Message: ‘chromedriver‘ executable needs to be in PAT
Livego + ffmpeg + RTMP + flvjs to realize live video
Actual measurement of automatic ticket grabbing script of barley network based on selenium (the first part of the new year)
2022dasctf APR x fat epidemic prevention challenge crypto easy_ real
WordPress plug-in: WP CHINA Yes solution to slow domestic access to the official website