Premium Crystal™ 26 Posted September 15, 2016 Premium Share Posted September 15, 2016 Hello again dear community, I've seen in many hosters for doing reset mysql need money ,so I'll release a way how to do it easy by your self. Here are the commands: /usr/local/etc/rc.d/mysql-server stop mysqld_safe --skip-grant-tables & mysql -u root use mysql update user set password=PASSWORD('yourpassword') where user='root'; flush privileges; quit service mysql-server restart Note:Replace the password that you want with the text yourpassword and if you're using another user replace root. Hope I've helped you , if you have any problems please let me know. Sincerely, Crystal 1 4 Link to comment https://metin2.dev/topic/13409-how-to-reset-change-dbs-password/ Share on other sites More sharing options...
Honorable Member martysama0134 8383 Posted September 16, 2016 Honorable Member Share Posted September 16, 2016 Just to sort it out better: # service mysql-server stop # mysqld_safe --skip-grant-tables & # mysql -u root mysql> use mysql; mysql> UPDATE user SET password=PASSWORD('yourpassword') WHERE user='root'; mysql> FLUSH PRIVILEGES; mysql> quit # service mysql-server restart 1 4 Check out my GitHub Link to comment https://metin2.dev/topic/13409-how-to-reset-change-dbs-password/#findComment-76605 Share on other sites More sharing options...
Premium Crystal™ 26 Posted September 16, 2016 Author Premium Share Posted September 16, 2016 12 hours ago, martysama0134 said: Just to sort it out better: # service mysql-server stop # mysqld_safe --skip-grant-tables & # mysql -u root mysql> use mysql; mysql> UPDATE user SET password=PASSWORD('yourpassword') WHERE user='root'; mysql> FLUSH PRIVILEGES; mysql> quit # service mysql-server restart Thanks master Link to comment https://metin2.dev/topic/13409-how-to-reset-change-dbs-password/#findComment-76652 Share on other sites More sharing options...
MichaelM 47 Posted September 22, 2016 Share Posted September 22, 2016 On 16.09.2016 at 11:26 PM, Crystal™ said: Thanks master Spoiler FLUSH PRIVILEGES; It's not mandatory. You're not granting any kind of privilege to 'root'. Link to comment https://metin2.dev/topic/13409-how-to-reset-change-dbs-password/#findComment-76976 Share on other sites More sharing options...
Honorable Member martysama0134 8383 Posted September 22, 2016 Honorable Member Share Posted September 22, 2016 33 minutes ago, MichaelM said: Hide contents FLUSH PRIVILEGES; It's not mandatory. You're not granting any kind of privilege to 'root'. I usually needed to do so to get a total refresh of the passwords even on older sessions too. It's not 100% necessary since we're going to restart mysql-server in the next step. (if that was your point) 1 Check out my GitHub Link to comment https://metin2.dev/topic/13409-how-to-reset-change-dbs-password/#findComment-76985 Share on other sites More sharing options...
Premium Crystal™ 26 Posted September 22, 2016 Author Premium Share Posted September 22, 2016 1 hour ago, MichaelM said: Reveal hidden contents FLUSH PRIVILEGES; It's not mandatory. You're not granting any kind of privilege to 'root'. anw it wont hurt anything Link to comment https://metin2.dev/topic/13409-how-to-reset-change-dbs-password/#findComment-76997 Share on other sites More sharing options...
xgeorgewow 4 Posted March 20, 2020 Share Posted March 20, 2020 (edited) I have a problem after i run this command ("mysql -u root") it's show me this: ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2) How can i resolve this , can someone help me? Edited March 20, 2020 by xgeorgewow Link to comment https://metin2.dev/topic/13409-how-to-reset-change-dbs-password/#findComment-124918 Share on other sites More sharing options...
ZernHD12 1 Posted May 27, 2022 Share Posted May 27, 2022 (edited) mysql> update user set password=PASSWORD('012345') where user='root'; ERROR 1036 (HY000): Table 'user' is read only mysql> help me please Edited May 27, 2022 by ZernHD12 Link to comment https://metin2.dev/topic/13409-how-to-reset-change-dbs-password/#findComment-149455 Share on other sites More sharing options...
Recommended Posts
Don't use any images from : imgur, turkmmop, freakgamers, inforge, hizliresim... Or your content will be deleted without notice...
Use : https://metin2.download/media/add/
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now