Welcome to World of IPTV

Join us now to get access to all our features. Once registered and logged in, you will be able to create topics, post replies to existing threads, give reputation to your fellow members, get your own private messenger, and so, so much more. It's also quick and totally free, so what are you waiting for?

Forum Rules

Our Rules: Read to avoid getting banned!

Advertising

Introduce Yourself to the World with Us!

Resource Database

Find the newest resources around IPTV!

Account upgrade

Upgrade your account to unlock more benefits!

Reset root MySQL password on Ubuntu 18.04 Bionic Beaver Linux

redhat

Administrator
Staff member
Administrator
Joined
Jun 19, 2019
Messages
3,306
Reaction score
15,927
Points
134
Location
root[@]woi
Objective
The objective is to reset lost root MySQL password on Ubuntu 18.04 Bionic Beaver Linux

Operating System and Software Versions
  • Operating System: - Ubuntu 18.04 Bionic Beaver
  • Software: - mysql Ver 14.14 or higher
Requirements
Privileged access to your Ubuntu System as root or via sudo command is required.

Difficulty
EASY

Conventions
  • # - requires given linux commands to be executed with root privileges either directly as a root user or by use of sudo command
  • $ - requires given linux commands to be executed as a regular non-privileged user

Instructions
Reset by using mysql_secure_installation

The simplest approach to reset MySQL database root password is to execute mysql_secure_installation program and when prompted entering your new root MySQL password:

Code:
$ sudo mysql_secure_installation

....

Please set the password for root here.


New password:

Re-enter new password:


Reset by using skip-grant-tables
If from some reason the above method fails follow the step below to use --skip-grant-tables to reset MySQL root password.

Let's start by stopping the currently running MySQL database: $ sudo service mysql stop


Next, create a /var/run/mysqld directory to be used by MySQL process to store and access socket file:
Bash:
$ sudo mkdir -p /var/run/mysqld

$ sudo chown mysql:mysql /var/run/mysqld


Once ready manually start MySQL with the following linux command and options:
Bash:
$ sudo /usr/sbin/mysqld --skip-grant-tables --skip-networking &

$ [1] 2708


Confirm that the process is running as expected:
Bash:
$ jobs

[1]+  Running     sudo /usr/sbin/mysqld --skip-grant-tables --skip-networking &
 
thanks for inf
 
thanks a lot
 
Channels MatchTime Unblock CDN Offshore Server Contact
100 cnx / 90€ 5Gbps / 180€ 48CPU-256GRAM 10Gbps 569€ Skype live:giefsl
500 cnx / 350€ 10Gbps / 350€ 48CPU-128GRAM 5Gbps / 349€ TG @changcdn
1000 cnx / 500€ 20Gbps / 700€ 40CPU-128GRAM 20Gbps / €980 http://coronaserver.com
shape1
shape2
shape3
shape4
shape5
shape6
Back
Top