当前位置:网站首页>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
边栏推荐
- How can matlab obtain the truncated image in trainingimagelabeler
- [target tracking] pedestrian attitude recognition based on frame difference method combined with Kalman filter, with matlab code
- Rt-1052 learning notes - GPIO architecture analysis
- Handwritten Google's first generation distributed computing framework MapReduce
- LeetCode 1346、检查整数及其两倍数是否存在
- LeetCode 994、腐烂的橘子
- 论文写作 19: 会议论文与期刊论文的区别
- [PTA] l1-002 printing hourglass
- Azkaban recompile, solve: could not connect to SMTP host: SMTP 163.com, port: 465 [January 10, 2022]
- Numpy - creation of data type and array
猜你喜欢
Recommend an open source free drawing software draw IO exportable vector graph
Numpy Index & slice & iteration
JDBC tool class jdbcfiledateutil uploads files and date format conversion, including the latest, simplest and easiest way to upload single files and multiple files
Don't bother tensorflow learning notes (10-12) -- Constructing a simple neural network and its visualization
DNS cloud school rising posture! Three advanced uses of authoritative DNS
Development of Matlab GUI bridge auxiliary Designer (functional introduction)
Building the tide, building the foundation and winning the future -- the successful holding of zdns Partner Conference
Mathematical modeling column | Part 5: MATLAB optimization model solving method (Part I): Standard Model
Error reported by Azkaban: Azkaban jobExecutor. utils. process. ProcessFailureException: Process exited with code 127
. Ren -- the intimate artifact in the field of vertical Recruitment!
随机推荐
SQL Server Connectors By Thread Pool | DTSQLServerTP plugin instructions
Livego + ffmpeg + RTMP + flvjs to realize live video
JDBC tool class jdbcconutil gets the connection to the database
Es index (document name) fuzzy query method (database name fuzzy query method)
【目标跟踪】基于帧差法结合卡尔曼滤波实现行人姿态识别附matlab代码
Matlab analytic hierarchy process to quickly calculate the weight
Numpy Index & slice & iteration
Customize timeline component styles
2022DASCTF Apr X FATE 防疫挑战赛 CRYPTO easy_real
Servlet learning notes
A useless confession artifact
Modeling based on catiav6
Monte Carlo py solves the area problem! (save pupils Series)
Plato farm is one of the four largest online IEOS in metauniverse, and the transaction on the chain is quite high
[talkative cloud native] load balancing - the passenger flow of small restaurants has increased
SQL Server connectors by thread pool 𞓜 instructions for dtsqlservertp plug-in
Redis的安装(CentOS7命令行安装)
Recognition of high-speed road signs by Matlab using alexnet
star
LeetCode 1346、检查整数及其两倍数是否存在