mySQL v5.7

Questions about applications and software
Forum rules
Before you post please read how to get help
Post Reply
dhenzler
Level 2
Level 2
Posts: 59
Joined: Sat Aug 20, 2016 1:27 pm

mySQL v5.7

Post by dhenzler » Sat Jun 30, 2018 12:15 am

I inadvertently deleted my root user privileges. I cannot seem to find the correct method of restoring them.

Code: Select all

 kill the current mysqld pid
    run mysqld with sudo /usr/sbin/mysqld &

    run /usr/bin/mysql_secure_installation

    Output from mysql_secure_installation

        root@myServer:~# /usr/bin/mysql_secure_installation

        Securing the MySQL server deployment.

        Enter password for user root:

        VALIDATE PASSWORD PLUGIN can be used to test passwords and improve security. It checks the strength of password and allows the users to set only those passwords which are secure enough. Would you like to setup VALIDATE PASSWORD plugin?

        Press y|Y for Yes, any other key for No: no Using existing password for root. Change the password for root ? ((Press y|Y for Yes, any other key for No) : y

        New password:

        Re-enter new password: By default, a MySQL installation has an anonymous user, allowing anyone to log into MySQL without having to have a user account created for them. This is intended only for testing, and to make the installation go a bit smoother. You should remove them before moving into a production environment.

        Remove anonymous users? (Press y|Y for Yes, any other key for No) : y Success.

        Normally, root should only be allowed to connect from 'localhost'. This ensures that someone cannot guess at the root password from the network.

        Disallow root login remotely? (Press y|Y for Yes, any other key for No) : y Success.

        By default, MySQL comes with a database named 'test' that anyone can access. This is also intended only for testing, and should be removed before moving into a production environment.

        Remove test database and access to it? (Press y|Y for Yes, any other key for No) : y

            Dropping test database... Success.

            Removing privileges on test database... Success.

        Reloading the privilege tables will ensure that all changes made so far will take effect immediately.

        Reload privilege tables now? (Press y|Y for Yes, any other key for No) : y Success.

        All done!

If someone has the correct method that has proven to work... please post it.

I can login with as root with my password, however have ZERO privileges...

HELP ! dhenzler@sonic.net for responses...

timbow
Level 1
Level 1
Posts: 43
Joined: Wed Oct 11, 2017 6:06 pm

Re: mySQL v5.7

Post by timbow » Mon Jul 02, 2018 7:51 am

This was trying to use a local lamp server?
Did you ever get anywhere with it|?

Post Reply

Return to “Software & Applications”