Normal view

There are new articles available, click to refresh the page.
Before yesterdayMain stream

《高性能 MySQL》第三版:是否已经过时?

1 June 2025 at 19:58
ZimaBlueee:

5 年 Java 后端开发,一直没深入学习过 MySQL ,平时只是使用,不了解 MySQL 原理或者性能优化。

搜了下看到很多人推荐《高性能 MySQL 》这本书,但发现几个问题:

  • 这本书的第三版评价很高,但是基于5.5写的;
  • 第四版增加了大量对 MySQL5.78.0版本新特性的介绍,但是豆瓣上的评价说翻译的不好。

请问有读过的 V 友推荐一下现在学习 MySQL 该读哪本书籍,或者哪个老师的视频呢?

跪求解答!

Recover MySQL Database root password

By: Onlyone
13 December 2011 at 22:42
Recover MySQL Database root password




By default, MySQL Server will be installed with root superuser without any password. You can connect to MySQL server as root without requiring password or by keying in blank password. However, if you have set the password for root and forget or unable to recall the password, then you will need to reset the root password for MySQL.
Login as root to the Unix-like (Unix, Linux or BSD) machine with the MySQL server.
Stop the MySQL server by using either of the following command
#/etc/init.d/mysql stop
Now you need to Start MySQL server without password
mysqld_safe --skip-grant-tables &
Connect to mysql server using mysql client with the following command
# mysql -u root
Now you should be having mysql prompt
mysql>
Now you need to Setup new MySQL root user password
mysql> use mysql;
mysql> update user set password=PASSWORD(“newrootpassword”) where user=’root’;
mysql> flush privileges;
mysql> quit
Note: Replace newrootpassword with the new root password for MySQL server. Flush Privileges is needed to making the password change effect immediately.
Now you need to Stop MySQL Server using the following command
# /etc/init.d/mysql stop
Test Your New Mysql root password
First you need to start mysql server using the following command
# /etc/init.d/mysql start
# mysql -u root -p
Now it will prompt for root password and enter your new root password
❌
❌